Skip to content

Fix #1975: Align valdefs and for expressions for patterns #1979

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 1 commit into from
Feb 14, 2017

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 14, 2017

val definitions and for expressions both distinguish whether
something is a pattern or a variable binding. They no do it
the same way: ident or an ident: type is a variable binding,
everything else is a pattern. Previously, capitalized idents
were considered as bindings in valdefs but as pattern in fors.

val definitions and for expressions both distinguish whether
something is a pattern or a variable binding. They no do it
the same way: `ident` or an `ident: type` is a variable binding,
everything else is a pattern. Previously, capitalized idents
were considered as bindings in valdefs but as pattern in fors.
@odersky odersky requested a review from felixmulder February 14, 2017 15:12
Copy link
Contributor

@felixmulder felixmulder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @odersky !

@felixmulder felixmulder merged commit 38a385a into scala:master Feb 14, 2017
@allanrenucci allanrenucci deleted the fix-#1975 branch December 14, 2017 19:18
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.

2 participants