Skip to content

Fix #947 #962

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 6 commits into from
Nov 17, 2015
Merged

Fix #947 #962

merged 6 commits into from
Nov 17, 2015

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Nov 17, 2015

Review by @smarter.

odersky and others added 6 commits November 17, 2015 12:37
Previously all lower case names were treated as variables
in patterns. But that made code like

    x: cls

crash the compiler if `cls` was a class. Also, it owuld preventing
this idiom unless one wrote

    x: `cls`

We now do it like scalac and treat lower case names as variables
only in arguments of types.
This witnesses that scala#945 is fixed (by pushing a fix to the
Scala file to dotty-library).
... to show that we support implicit patterns.
@smarter
Copy link
Member

smarter commented Nov 17, 2015

LGTM.

smarter added a commit that referenced this pull request Nov 17, 2015
@smarter smarter merged commit f9c8675 into scala:master Nov 17, 2015
@allanrenucci allanrenucci deleted the fix-#947 branch December 14, 2017 19:19
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