1 2 3 4 5 6 7
object Test extends dotty.runtime.LegacyApp { def foo(bar: String = { def foo: String = macro Impls.foo; foo }) = println(bar) foo() foo("it works") foo() }