diff options
Diffstat (limited to 'test/files/run/macro-def-infer-return-type-b/Impls_Macros_1.scala')
-rw-r--r-- | test/files/run/macro-def-infer-return-type-b/Impls_Macros_1.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/macro-def-infer-return-type-b/Impls_Macros_1.scala b/test/files/run/macro-def-infer-return-type-b/Impls_Macros_1.scala new file mode 100644 index 0000000000..8640713846 --- /dev/null +++ b/test/files/run/macro-def-infer-return-type-b/Impls_Macros_1.scala @@ -0,0 +1,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] +}
\ No newline at end of file |