blob: 454489752c302d5a25b862565313921c556075b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import language.experimental.macros
import reflect.macros.BlackboxContext
object M {
def m(a: Any, b: Any): Any = macro mImpl
def mImpl(c: BlackboxContext)(a: c.Expr[Any], b: c.Expr[Any]) = c.universe.reify(println(a.splice))
@reflect.internal.annotations.compileTimeOnly("cto may only be used as an argument to " + "m")
def cto = 0
}
|