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 case in pattern bindings under -Xsource:3 #9558

Merged
merged 1 commit into from Apr 20, 2021

Commits on Mar 30, 2021

  1. Support case in pattern bindings under -Xsource:3

    Just like in Scala 3.0, adding this keyword doesn't change anything, but
    it will be required in future versions of Scala 3 for non-exhaustive
    patterns in a for comprehension. We would like to start issuing warnings
    by default in Scala 3 for code which does not use `case` in those
    situations, but to not hamper cross-compilation we need Scala 2 to also
    support that keyword.
    
    For details, see:
    https://dotty.epfl.ch/docs/reference/changed-features/pattern-bindings.html
    smarter committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    09b5ded View commit details
    Browse the repository at this point in the history