Skip to content

Fix #1790: Change by-name pattern matching. #1801

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

Merged
merged 2 commits into from
Dec 16, 2016

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 14, 2016

New implementation following the scheme outlined in #1790.
Update: The new set of rules is in #1805.

Review by @liufengyun, since it affects the pattern matcher.

New implementation following the scheme outlined in scala#1790.
This implements the rules laid down in scala#1805.
@odersky
Copy link
Contributor Author

odersky commented Dec 15, 2016

@DarkDimius please take a look at the changes in PatternMatcher of the last commit. I think I figured out how to determine the arity of the match in all cases, but it would be good to have this double-checked.

@DarkDimius
Copy link
Contributor

LGTM, seems like the right way to do it.

@DarkDimius DarkDimius merged commit 8643876 into scala:master Dec 16, 2016
@allanrenucci allanrenucci deleted the fix-#1790 branch December 14, 2017 16:59
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

Successfully merging this pull request may close these issues.

3 participants