summaryrefslogtreecommitdiff
path: root/test/files/run/macro-def-infer-return-type/Impls_1.scala
blob: c670b1e57e4ed6bf210b390305349537404d7afc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import scala.reflect.macros.BlackboxContext

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

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

object Impls3 {
  def foo[T](c: BlackboxContext)(x: c.Expr[T]): c.Expr[T] = x
}