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

eltype(Tuple{...}) less specific than 0.5 #20143

Closed
TotalVerb opened this issue Jan 20, 2017 · 1 comment
Closed

eltype(Tuple{...}) less specific than 0.5 #20143

TotalVerb opened this issue Jan 20, 2017 · 1 comment
Labels
types and dispatch Types, subtyping and method dispatch

Comments

@TotalVerb
Copy link
Contributor

One consequence of new subtyping is that the eltype for certain non-concrete Tuple types no longer returns the most specific possible result; i.e. in 0.5

julia> eltype(Tuple{Integer})
Integer

whereas in 0.6

julia> eltype(Tuple{Integer})
Any

Related: #20140

@ararslan ararslan added the types and dispatch Types, subtyping and method dispatch label Jan 20, 2017
@vtjnash
Copy link
Member

vtjnash commented Jan 20, 2017

This appears to be a direct consequence of #19998 (comment)

Maybe that condition needs more consideration, or it seems we might need to find a different way to express this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
types and dispatch Types, subtyping and method dispatch
Projects
None yet
Development

No branches or pull requests

3 participants