import scala.language.reflectiveCalls object Test extends dotty.runtime.LegacyApp { val macros = new { def foo: Unit = macro Impls.foo } macros.foo }