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

Support ? as wildcard marker under -Xsource:3 #9560

Merged
merged 1 commit into from Apr 8, 2021

Commits on Mar 31, 2021

  1. Support ? as wildcard marker under -Xsource:3

    Like in Scala 3.0, this allows `?` to be used as a type argument in all
    situations where `_` could be used as a wildcard previously. This should
    allow us to deprecate the use of `_` as a wildcard in Scala 3 to be able
    to eventually repurpose it as explained in
    http://dotty.epfl.ch/docs/reference/changed-features/wildcards.html
    
    This is a source-breaking change since a type named `?` is legal in
    Scala 2 (but not in Scala 3 unless -source 3.0-migration is used).
    `?` also has a special meaning when the kind-projector plugin is used,
    but that usage has been deprecated in favor of `*` for a while now.
    smarter committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    3c5f6aa View commit details
    Browse the repository at this point in the history