1 2 3 4 5 6 7 8 9 10
class Macros { object Macros { def foo: Unit = macro Impls.foo } } object Test extends dotty.runtime.LegacyApp { val outer = new Macros() outer.Macros.foo }