From 5a88dabb5186a87ca0d16257264ebfec04724b67 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Thu, 19 Jan 2017 15:44:24 +0100 Subject: [PATCH] Fix computing eltype --- src/broadcast.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broadcast.jl b/src/broadcast.jl index 91186e9..0931740 100644 --- a/src/broadcast.jl +++ b/src/broadcast.jl @@ -25,7 +25,7 @@ if VERSION < v"0.6.0-dev" # Old approach needed for inference to work @inline ziptype(A, B, C, D...) = Zip{Tuple{eltype(A)}, ziptype(B, C, D...)} nullable_broadcast_eltype(f, As...) = - _default_eltype(Base.Generator{ziptype(As...), ftype(f, As...)}) + eltype(_default_eltype(Base.Generator{ziptype(As...), ftype(f, As...)})) else Base.@pure nullable_eltypestuple(a) = Tuple{eltype(eltype(a))} Base.@pure nullable_eltypestuple(T::Type) = Tuple{Type{eltype(T)}}