1 2 3 4 5 6 7 8 9 10
import scala.reflect.runtime.universe._ import scala.reflect.runtime.{currentMirror => cm} import scala.tools.reflect.ToolBox object Test extends dotty.runtime.LegacyApp { Macros.foo val tb = cm.mkToolBox() tb.typecheck(q"class C") }