blob: 4186c4c4a6e98de8970e203a8806eed88ef965e6 (
plain) (
tree)
|
|
import scala.reflect.makro.Context
object Impls {
def impl(c: Context) = {
import c.mirror._
println(c.fresh())
println(c.fresh("qwe"))
println(c.fresh(newTypeName("qwe")))
c.abort(NoPosition, "blargh")
}
}
object Macros {
def foo = macro Impls.impl
}
|