blob: 126e9c067a8e80e9fc481aabd8fe8b8542285c6c (
plain) (
tree)
|
|
import scala.reflect.macros.BlackboxContext
import language.experimental.macros
object Macros {
def impl(c: BlackboxContext) = {
import c.universe._
val wut = c.typeCheck(Select(Literal(Constant(10)), newTermName("$minus")), silent = true)
// println(showRaw(wut, printIds = true, printTypes = true))
c.Expr[Unit](q"()")
}
def foo = macro impl
}
|