blob: fa8522e7297eaf9aae4a21b948567dd98b46a665 (
plain) (
tree)
|
|
import scala.language.experimental.macros
import scala.reflect.macros.BlackboxContext
object Macros {
def impl1(c: BlackboxContext) = {
import c.universe._
q"""println("impl1")"""
}
def impl2(c: BlackboxContext) = {
import c.universe._
q"""println("impl2")"""
}
def foo1: Unit = macro 1
def foo2: Unit = macro 2
}
|