blob: 12108cfefaa82efb3e593c0ed11c9a0fbd57736d (
plain) (
blame)
1
2
3
4
5
6
|
import scala.reflect.macros.Context
object Macros {
def impl[T, U](c: Context) = { import c.universe._; c.Expr[Unit](Literal(Constant(()))) }
def foo[T, U] = macro impl[T, U]
}
|