blob: f8636fe725272c09fe768ecc2349e02dfa68763c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import scala.reflect.macros.Context
object Impls1 {
def foo(c: Context)(x: c.Expr[Int]) = x
}
object Impls2 {
def foo[T](c: Context)(x: c.Expr[T]) =
throw new Error("an implementation is missing")
}
object Impls3 {
def foo[T](c: Context)(x: c.Expr[T]): c.Expr[T] = x
}
|