Skip to content

introduce language imports for scala 3.2 #14615

Closed
@bishabosha

Description

@bishabosha

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions