Skip to content

no creator proxies for exported classes without a companion #11229

Closed
@bishabosha

Description

@bishabosha

Compiler version

3.0.0-RC1-bin-SNAPSHOT at e10cfa8

Minimized example

object Outer {

  object Wrap {
    export Outer.Bar
  }

  class Bar

  val wrapBar = Wrap.Bar()
}

Output

9 | val wrapBar = Wrap.Bar()
  |               ^^^^^^^^
  |               value Bar is not a member of object Outer.Wrap

Expectation

no compilation error. If I add a companion to Bar then there is no error.

This is against my expectation because usually classes have creator proxies synthesized if no companion is explicitly declared

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions