summaryrefslogtreecommitdiff
path: root/test/files/run/macro-invalidusage-badret/Impls_Macros_1.scala
blob: a54eaa4001f90eb7355b5888cbf11be3b22e3d81 (plain) (blame)
1
2
3
4
5
6
7
8
9
import scala.reflect.macros.{BlackboxContext => Ctx}

object Impls {
  def foo(c: Ctx)(x: c.Expr[Int]) = x
}

object Macros {
  def foo(x: Int) = macro Impls.foo
}