Skip to content

REPL : pureFunctions and captureChecking fail with "language import only allowed at toplevel" #16250

Open
@rjolly

Description

@rjolly

Compiler version

3.2.2-RC1-bin-SNAPSHOT-git-292e56f

Minimized code

scala> import language.experimental.captureChecking

Output

-- Error: ----------------------------------------------------------------------
1 |import language.experimental.captureChecking
  |                             ^^^^^^^^^^^^^^^
  |                      this language import is only allowed at the toplevel

Expectation

Should work. See f2c1b24

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions