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 Scala 3 wildcard and renaming imports under -Xsource:3 #9582

Merged
merged 1 commit into from Apr 20, 2021

Commits on Apr 19, 2021

  1. Support Scala 3 wildcard and renaming imports under -Xsource:3

    Instead of:
    
        import foo._
    
    One can now write:
    
        import foo.*
    
    and instead of:
    
        import foo.{bar => baz}
    
    One can now write:
    
        import foo.{bar as baz}
    
    As well as:
    
        import foo.bar as baz
    
    This will let us deprecate the old syntax in a future release of Scala
    3 (it's currently only deprecated under `-source future`).
    
    See http://dotty.epfl.ch/docs/reference/changed-features/imports.html
    for details but note that unlike Scala 3 this commit does not implement
    support for:
    
        import java as j
    
    As that would require deeper changes in the compiler.
    smarter committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    c719da7 View commit details
    Browse the repository at this point in the history