blob: c98279b2b818384da04f83981f17f7b167143946 (
plain) (
tree)
|
|
import scala.reflect.macros.BlackboxContext
import language.experimental.macros
trait T { def t(): Unit }
trait A { def t(): Unit = () }
object Macro { def t(c: BlackboxContext)(): c.Expr[Unit] = c.universe.reify(()) }
trait C extends T { self: A => override def t(): Unit = macro Macro.t }
|