-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of <:Union{} #37255
Comments
Indeed, given all of these: julia> Type{Integer} == Type{T} where {Integer<:T<:Integer}
true
julia> Type{Int} == Type{T} where {Int<:T<:Int}
true
julia> Type{Any} == Type{T} where {Any<:T<:Any}
true
julia> Ref{Union{}} == Ref{T} where {Union{}<:T<:Union{}}
true It's hard to justify that: julia> Type{Union{}} == Type{T} where {Union{}<:T<:Union{}}
false |
martinholters
added a commit
that referenced
this issue
Aug 28, 2020
In particular, make `obviously_unequal(Type{Union{}}, Type{T} where {Union{}<:T<:Union{}})` false. Fixes #37255
JeffBezanson
pushed a commit
that referenced
this issue
Aug 29, 2020
In particular, make `obviously_unequal(Type{Union{}}, Type{T} where {Union{}<:T<:Union{}})` false. Fixes #37255
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this should not be allowed:
and the compiler should identify that these two signatures are identical as
Union{}
is bottom type.The text was updated successfully, but these errors were encountered: