Skip to content

Misleading compile error message in wildcard exports #18031

Closed
@antognini

Description

@antognini

Compiler version

3.3.0

Minimized code

object A:
  val x, y, z = 0

object B:
  export A.{*, x as _} // compile error at this line

Output

named imports cannot follow wildcard imports
  export A.{*, x as _}

Expectation

The compiler correctly stops, but there are no import statements involved; the error message should be

named exports cannot follow wildcard exports
  export A.{*, x as _}

Metadata

Metadata

Assignees

No one assigned

    Labels

    SpreeSuitable for a future Spreearea:reportingError reporting including formatting, implicit suggestions, etcitype:bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions