Skip to content

Inline accessor for objects is in the wrong place #13215

Open
@nicolasstucki

Description

@nicolasstucki

Compiler version

3.0.1

Minimized code

package foo {
  trait Bar:
    inline def baz = Baz

  private[foo] object Baz
}

Output

After typer we generate the following inline accessor for a module

package foo {
  trait Bar:
    inline def baz = this.foo$Bar$$inline$Baz
    def foo$Bar$$inline$Baz = foo.Baz

  private[foo] object Baz
}

There are several issues with this scheme

Expectation

package foo {
  trait Bar:
    inline def baz = foo.inline$Baz

  def inline$Baz = foo.Baz
  private[foo] object Baz
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions