-
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 #11061: stop accidentally supported auto-tupling for case classes #10987
Conversation
a43859c
to
a842928
Compare
b2933b0
to
360f000
Compare
@nicolasstucki: is this one ready to go, given that there is no consensus on #11008? |
@nicolasstucki Can we merge this as it fixes #10958 and accidentally supported language features:
Then we can think about how to support the new feature in #11008 . |
We can revert that line of change in this PR and add it as a neg test. The rationale for merging this is that it fixes another important issue #11061: the accidentally supported auto-untupling of case classes.
The code changes of this PR mainly target the bug #11061. |
@liufengyun there is a small conflict with master |
This commit refactor the PR scala#5259 so that it will not impact pattern matching code. scala#5259 - tests/pos/automatic-tupling-of-function-parameters.scala This test requires dealiasing. - tests/run/function-arity.scala This test requires widen ExprType.
Fix #11061: stop accidentally supported auto-tupling for case classes
This commit refactor the PR #5259 so that it will not impact pattern
matching code.