blob: ce07138852040effa22dce6c7d572b56f1ffcb0a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import scala.reflect.macros.blackbox.Context
import language.experimental.macros
trait Impls {
def impl(c: Context)(x: c.Expr[Any]) = x
}
object Macros extends Impls {
def foo(x: Any) = macro impl
}
|