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 +_ and -_ in types as identifiers under -Xsource:3 to support Scala 3.2 placeholder syntax #9605

Merged
merged 4 commits into from May 10, 2021

Commits on May 3, 2021

  1. Parse +_ and -_ in types as identifiers to support Scala 3.2 plac…

    …eholder syntax
    
    This change allows `kind-projector` plugin to rewrite `+_` and `-_` tokens to type lambdas,
    in line with proposed syntax for Scala 3.2 in http://dotty.epfl.ch/docs/reference/changed-features/wildcards.html
    
    When used in conjunction with `-Xsource:3` this will let the user use `?` for wildcards and `_` for placeholders, letting the user cross-compile the same sources with Scala 3 with `-source:3.2` flag.
    
    This change is not source breaking since currently `+_` and `-_` fail to parse entirely,
    this change also does not allow the user to declare types with these names without backticks,
    they can only be used as part of a type tree.
    neko-kai committed May 3, 2021
    Configuration menu
    Copy the full SHA
    692431d View commit details
    Browse the repository at this point in the history

Commits on May 6, 2021

  1. Configuration menu
    Copy the full SHA
    946b129 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2021

  1. Gate -_/+_ parsing behind -Xsource:3 to guarantee minimal disru…

    …ption to existing code
    neko-kai committed May 8, 2021
    Configuration menu
    Copy the full SHA
    196c656 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2021

  1. Configuration menu
    Copy the full SHA
    0a00169 View commit details
    Browse the repository at this point in the history