Skip to content

Inlining private method breaks compilation #14042

Closed
@scf37

Description

@scf37

Compiler version

3.1.0

Minimized code

trait T {
  inline def foo(handler: Int): Unit =
    bar(handler)

  private inline def bar(handler: Int): Unit = ()
}

new T {
  foo(42)
}

Output

undefined: T_this.bar # -1: TermRef(TermRef(NoPrefix,val T_this),bar) at inlining

Expectation

Successful compilation

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions