blob: 440d1e2915a858bdc3cb8baf80547aa8998aa845 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import scala.reflect.makro.Context
object Impls {
def impl(c: Context) = {
import c.universe._
println(c.fresh())
println(c.fresh("qwe"))
println(c.fresh(newTypeName("qwe")))
c.abort(NoPosition, "blargh")
}
}
object Macros {
def foo = macro Impls.impl
}
|