Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
Fix computing eltype
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Jan 19, 2017
1 parent 3f17571 commit 5a88dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)}}
Expand Down

0 comments on commit 5a88dab

Please sign in to comment.