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

NamedTuple should inherit the covariance of Tuple #37271

Closed
goretkin opened this issue Aug 29, 2020 · 1 comment
Closed

NamedTuple should inherit the covariance of Tuple #37271

goretkin opened this issue Aug 29, 2020 · 1 comment

Comments

@goretkin
Copy link
Contributor

Maybe.

julia> Tuple{Int} <: Tuple{Integer}
true

but

julia> NamedTuple{(:x,),Tuple{Int}} <: NamedTuple{(:x,),Tuple{Integer}}
false

I don't have a use-case for this, but it's just a thought.

@yuyichao
Copy link
Contributor

Dup of #32825

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