blob: d13e851d90c50ac9dcf12cecbf24e06e6271177a (
plain) (
tree)
|
|
import scala.reflect.macros.whitebox.Context
import scala.language.experimental.macros
object Macros {
def impl(c: Context) = {
import c.universe._
q"if (true) Some(2) else None"
}
def foo: Any = macro impl
}
|