blob: ee1c8da7638192930b5a3a2b719e98b844b9d3d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import scala.reflect.macros.whitebox._
import scala.language.experimental.macros
object Macros {
def impl(c: Context) = {
import c.universe._
c.typecheck(q"class C")
q"()"
}
def foo: Any = macro impl
}
|