summaryrefslogtreecommitdiff
path: root/test/files/run/t8048a/Macros_1.scala
blob: d13e851d90c50ac9dcf12cecbf24e06e6271177a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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
}