1 2 3 4 5 6
object Foo extends Foo { def f: Unit = {} } class Foo object Test extends dotty.runtime.LegacyApp { Foo }