Skip to content

introduce language imports for scala 3.2 #14615

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

Closed
bishabosha opened this issue Mar 3, 2022 · 1 comment · Fixed by #14294
Closed

introduce language imports for scala 3.2 #14615

bishabosha opened this issue Mar 3, 2022 · 1 comment · Fixed by #14294
Assignees
Milestone

Comments

@bishabosha
Copy link
Member

bishabosha commented Mar 3, 2022

add 3.2 and 3.2-migration language modes, to scala.runtime.stdLibPatches.language and dotty.tools.config.SourceVersion

Compiler version

3.2.0-bin-SNAPSHOT

Minimized example

import scala.language.`3.2`, scala.language.`3.2-migration`

Output

-- [E008] Not Found Error: -----------------------------------------------------
1 |import scala.language.`3.2`
  |                      ^^^^^
  | value 3.2 is not a member of object language - did you mean language.3.0?
1 error found
                      

Expectation

allow those imports

@odersky
Copy link
Contributor

odersky commented Mar 3, 2022

Yes we should do that. Jamie, can you take care of it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants