-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix casting of generic tuple selection #14590
Fix casting of generic tuple selection #14590
Conversation
Perhaps not directly related to this, but the type inferred for
|
The former reduces to the latter but that only happens when and if it needs to. What difference does it make to you? (Which sounds miles more aggressive than I mean it... 😅 ) |
Nothing at all, only thing I can think of is some obscure cases where it might make things harder for type class derivation. I just noticed it when trying this out in Scala 2 and just wanted to be sure nothing was overlooked. |
d684972
to
2f19e30
Compare
|
Obviously, in hindsight, we can't use the types of the unapply arguments as the type for selecting the components of a (generic) tuple...
7813fe9
to
83e0288
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
094c963
to
08889fe
Compare
Doc tests failed due to a time out. I restarted the tests. |
Obviously, in hindsight, we can't use the types of the unapply arguments
as the type for selecting the components of a (generic) tuple...
Fixes #14587
[test_non_bootstrapped]