summaryrefslogtreecommitdiff
path: root/test/files/run/macro-expand-implicit-macro-is-val/Impls_1.scala
blob: a8b478e9f26df5debd0249472ddd8884b3bedc49 (plain) (blame)
1
2
3
4
5
6
7
8
9
import scala.reflect.macros.{BlackboxContext => Ctx}

object Impls {
  def foo(c: Ctx) = {
    import c.universe._
    val body = Literal(Constant(2))
    c.Expr[Int](body)
  }
}