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