blob: 75a03b54e7699103dc87889be83ce238c3a38e14 (
plain) (
tree)
|
|
package test2
import scala.reflect.macros.blackbox.Context
trait Exprs {
self: Universe =>
class Expr[T]
}
trait Reifiers {
self: Universe =>
}
trait Universe extends Exprs with Reifiers {
def reify[T](expr: T): Expr[T] = macro Impls.reify[T]
}
object Impls {
def reify[T](cc: Context{ type PrefixType = Universe })(expr: cc.Expr[T]): cc.Expr[cc.prefix.value.Expr[T]] = ???
}
|