summaryrefslogtreecommitdiff
path: root/test/files/run/macro-def-infer-return-type-b/Impls_Macros_1.scala
blob: 86407138463ec51ac545f5e7998a3b0e3c8198c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import scala.reflect.makro.{Context => Ctx}

object Impls {
  def foo[T](c: Ctx)(x: c.Expr[T]) =
    throw new Error("an implementation is missing")
}

object Macros {
  def foo[T](x: T) = macro Impls.foo[T]
}