diff options
Diffstat (limited to 'test/files/run/macro-expand-implicit-macro-has-implicit/Impls_1.scala')
-rw-r--r-- | test/files/run/macro-expand-implicit-macro-has-implicit/Impls_1.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/macro-expand-implicit-macro-has-implicit/Impls_1.scala b/test/files/run/macro-expand-implicit-macro-has-implicit/Impls_1.scala new file mode 100644 index 0000000000..39db275e1c --- /dev/null +++ b/test/files/run/macro-expand-implicit-macro-has-implicit/Impls_1.scala @@ -0,0 +1,9 @@ +import scala.reflect.makro.{Context => Ctx} + +object Impls { + def foo(c: Ctx)(x: c.Expr[Int]) = { + import c.mirror._ + val body = Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(x.tree)) + Expr[Unit](body) + } +} |