Skip to content
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

Missed leaf type canonicalization #21400

Closed
TotalVerb opened this issue Apr 16, 2017 · 2 comments
Closed

Missed leaf type canonicalization #21400

TotalVerb opened this issue Apr 16, 2017 · 2 comments

Comments

@TotalVerb
Copy link
Contributor

TotalVerb commented Apr 16, 2017

The leaf types Tuple{Int} and Tuple{T} where T <: Int aren't canonicalized to the same thing.

julia> Tuple{Int} == (Tuple{T} where T <: Int)
true

julia> Tuple{Int} === (Tuple{T} where T <: Int)
false

julia> Tuple{Int} isa Type{Tuple{T} where T <: Int}
false
@JeffBezanson
Copy link
Member

This was noted in #19998. Also, isleaftype(Tuple{T} where T <: Int) is false, so this has not been a major issue in practice so far.

@TotalVerb
Copy link
Contributor Author

OK, no point duplicating this issue then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants