blob: 1a5da8200b2be71fc147ef4a5bfb51346a7c7a05 (
plain) (
tree)
|
|
package test3
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]] = ???
}
|