You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit edit: No mistake, but the issue is upstream of Core.Inference.return_type, I think in ziptype and _default_eltype. Specifically, broadcast(round, Int, [1,2,3]) determines its return eltype from this line,
T =_default_eltype(Base.Generator{ziptype(As...), ftype(f, As...)})
with As = (Int, [1,2,3]). And due to this line, default_eltype effectively calls
ziptype(Int, [1,2,3]) returns Base.Iterator.Zip2{Tuple{Int64},Tuple{Int64}}, causing type inference to inspect the round method appropriate for a pair of Int64s rather than the Int64 type paired with Int64.
I noticed this behavior with
round
,ceil
, andfloor
at least.The text was updated successfully, but these errors were encountered: