From 53d821a69e158f308c893512712e08010fec646d Mon Sep 17 00:00:00 2001 From: Rene Donner Date: Mon, 3 Aug 2015 11:53:07 +0200 Subject: [PATCH] fix deprecation warning --- src/JLD.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JLD.jl b/src/JLD.jl index 623b997..7bbb936 100644 --- a/src/JLD.jl +++ b/src/JLD.jl @@ -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"