Skip to content

Allow [T] => { (x: T) => x } syntax for polymorphic functions #12331

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
May 5, 2021

Conversation

jrudolph
Copy link
Contributor

@jrudolph jrudolph commented May 5, 2021

Fixes #12323

@jrudolph jrudolph changed the title Allow [T] => { (x: T) => x } syntax for polymorhpic functions Allow [T] => { (x: T) => x } syntax for polymorphic functions May 5, 2021
@jrudolph jrudolph force-pushed the 12323-poly-with-braces branch from 60bb3c2 to 0deef90 Compare May 5, 2021 08:06
@bishabosha bishabosha self-requested a review May 5, 2021 10:51
Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@bishabosha bishabosha merged commit 83acd4b into scala:master May 5, 2021
@Kordyjan Kordyjan added this to the 3.0.1 milestone Aug 2, 2023
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.

Polymorphic function value not allowed depending on placement of braces
3 participants