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
julia>convert(Complex{AbstractFloat}, 1+im)
1.0+1.0im
julia>convert(Complex{T} where T <:AbstractFloat, 1+im)
ERROR: MethodError: no method matching (Complex{T} where T<:AbstractFloat)(::Complex{Int64})
I understand that it is tricky to support UnionAll, but the need arises in my own packages and it would be nice to fall back on some examples in Base.
The text was updated successfully, but these errors were encountered:
I expected
to work, computing e.g.
convert.(AbstractFloat, [1, 2])
On zulip another case was brought up
I understand that it is tricky to support
UnionAll
, but the need arises in my own packages and it would be nice to fall back on some examples inBase
.The text was updated successfully, but these errors were encountered: