diff options
Diffstat (limited to 'test/files/run/t5753_2/Impls_Macros_1.scala')
-rw-r--r-- | test/files/run/t5753_2/Impls_Macros_1.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t5753_2/Impls_Macros_1.scala b/test/files/run/t5753_2/Impls_Macros_1.scala new file mode 100644 index 0000000000..e23c0b938b --- /dev/null +++ b/test/files/run/t5753_2/Impls_Macros_1.scala @@ -0,0 +1,10 @@ +import scala.reflect.macros.{Context => Ctx} + +trait Macro_T { + def foo[T](c: Ctx)(s: c.Expr[T]) = s +} + +object Macros { + def foo[T](s: T) = macro Impls.foo[T] + object Impls extends Macro_T +} |