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
This bug has appeared in the last few days on master. Depending on the order in which you call f and g, you get different results. In all cases, the Any result is unexpected and didn't happen before.
First call order:
julia>f{S,T}(x::S, y::T) = Base.promote_op(^, S, T)
f (generic function with 1 method)
julia>f(Nullable(0.0f0), Nullable(BigInt(0)))
Nullable{Any}
julia>g{S,T}(x::Nullable{S}, y::Nullable{T}) = Base.promote_op(^, S, T)
g (generic function with 1 method)
julia>g(Nullable(0.0f0), Nullable(BigInt(0)))
Float32
Second call order:
julia>g{S,T}(x::Nullable{S}, y::Nullable{T}) = Base.promote_op(^, S, T)
g (generic function with 1 method)
julia>g(Nullable(0.0f0), Nullable(BigInt(0)))
Any
julia>f{S,T}(x::S, y::T) = Base.promote_op(^, S, T)
f (generic function with 1 method)
julia>f(Nullable(0.0f0), Nullable(BigInt(0)))
Nullable{Float32}
The text was updated successfully, but these errors were encountered:
This bug has appeared in the last few days on master. Depending on the order in which you call
f
andg
, you get different results. In all cases, theAny
result is unexpected and didn't happen before.First call order:
Second call order:
The text was updated successfully, but these errors were encountered: