Skip to content
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

Parse underscore type lambdas (And +_ and -_ symbols) #2347

Closed
neko-kai opened this issue May 17, 2021 · 2 comments
Closed

Parse underscore type lambdas (And +_ and -_ symbols) #2347

neko-kai opened this issue May 17, 2021 · 2 comments
Assignees

Comments

@neko-kai
Copy link

neko-kai commented May 17, 2021

Recently added to Scala 2 in: scala/scala#9605 (Under flag -Xsource:3 + kind-projector flag -P:kind-projector:underscore-placeholders typelevel/kind-projector#186)
And to Scala 3 in: scala/scala3#12378 (Under flag -Ykind-projector:underscores)

Note: Scala (with the above flags) now accepts tokens +/- followed by _ as a type lambda placeholder. Some examples w/ edge cases below:

@dos65 dos65 self-assigned this May 18, 2021
@dos65
Copy link
Member

dos65 commented May 18, 2021

@neko-kai Will this change be included in 2.12.14 + -Xsource:3?

@neko-kai
Copy link
Author

neko-kai commented May 18, 2021

@dos65 Yes scala/scala#9620

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

No branches or pull requests

3 participants