Skip to content

Commit

Permalink
Merge pull request #5 from rened/depr
Browse files Browse the repository at this point in the history
fix deprecation warning
  • Loading branch information
timholy committed Aug 3, 2015
2 parents 36a2d1f + eb2c138 commit c716537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JLD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ length(x::Union(JldFile, JldGroup)) = length(names(x))
is_valid_type_ex(s::Symbol) = true
is_valid_type_ex(s::QuoteNode) = true
is_valid_type_ex{T}(::T) = isbits(T)
is_valid_type_ex(e::Expr) = ((e.head == :curly || e.head == :tuple || e.head == :.) && all(map(is_valid_type_ex, e.args))) ||
is_valid_type_ex(e::Expr) = ((e.head == :curly || e.head == :tuple || e.head == :.) && all(is_valid_type_ex, e.args)) ||
(e.head == :call && (e.args[1] == :Union || e.args[1] == :TypeVar))

if VERSION >= v"0.4.0-dev+1419"
Expand Down

0 comments on commit c716537

Please sign in to comment.