-
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 .toTuple insertion #22028
Fix .toTuple insertion #22028
Conversation
It previously did not follow aliases or upper bounds when deciding whether something was a named tuple.
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.
Should we replace all usages of isNamedTupleType
with derivesFromNamedTuple
?
There is Implicits#viewExists
as a contender in particular.
I had a look at all occurrences of isNamedTuple and applied tweaks that looked reasonable. |
Do you think we should backport it to 3.6.2 or can it wait for 3.6.3? For me it looks like a candidate for RC3 backport |
I think it can wait. That way we have more time to see whether this causes
any issues. I don't expect them, but better to be sure.
…On Tue, Nov 26, 2024 at 5:13 PM Eugene Flesselle ***@***.***> wrote:
***@***.**** approved this pull request.
—
Reply to this email directly, view it on GitHub
<#22028 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGCKVRM6D4QBMT4VVTYQSL2CSM4DAVCNFSM6AAAAABSQIHMC6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDINRSGAZTCNZUHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Martin Odersky
Professor, Programming Methods Group (LAMP)
Faculty IC, EPFL
Station 14, Lausanne, Switzerland
|
SIP 58 postulates an implicit insertion ot
.toTuple
when the target is a tuple and the source is a named tuple. This was previously not fully implemented. The implementation did not follow aliases or upper bounds when deciding whether something was a named tuple. This is fixed in this PR.