Skip to content

Using import foo._ with "-source:future" prints message about "-source:3.1-migration" #11487

Closed
@deanwampler

Description

@deanwampler

Compiler version

3.0.0-RC1 with flag -source:future

Minimized code

$ scala3-3.0.0-RC1/bin/scala -source:future
Starting scala3 REPL...
scala> object Foo:
     |   def one = "one"
     |   val two = 2
     |
// defined object Foo

scala> import Foo._
1 |import Foo._
  |           ^
  |`_` is no longer supported for a wildcard import; use `*` instead
  |This construct can be rewritten automatically under -rewrite -source 3.1-migration.

Output

Expectation

Expect message to end with ... -rewrite -source future-migration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions