Skip to content

Parentheses around a wildcard should not produce a lambda #908

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
Nov 2, 2015

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Nov 2, 2015

(_) and (_: T) should not be converted to functions

x => x
(x: T) => x

Fixes #903. Review by @retronym?

`(_)` and `(_: T)` should not be converted to functions

    x => x
    (x: T) => x
@retronym
Copy link
Member

retronym commented Nov 2, 2015

Should also test the _ case (no type), but otherwise LGTM

As suggested by review.
odersky added a commit that referenced this pull request Nov 2, 2015
Parentheses around a wildcard should not produce a lambda
@odersky odersky merged commit 21f6711 into scala:master Nov 2, 2015
@allanrenucci allanrenucci deleted the fix-#903 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.

2 participants