Skip to content

Commit

Permalink
fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Donner committed Aug 3, 2015
1 parent f2a0adc commit 53d821a
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 53d821a

Please sign in to comment.