diff options
Diffstat (limited to 'tests/disabled/macro/run/macro-expand-multiple-arglists/Impls_1.scala')
-rw-r--r-- | tests/disabled/macro/run/macro-expand-multiple-arglists/Impls_1.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/macro-expand-multiple-arglists/Impls_1.scala b/tests/disabled/macro/run/macro-expand-multiple-arglists/Impls_1.scala new file mode 100644 index 000000000..9278633c1 --- /dev/null +++ b/tests/disabled/macro/run/macro-expand-multiple-arglists/Impls_1.scala @@ -0,0 +1,10 @@ +import scala.reflect.macros.blackbox.Context + +object Impls { + def foo(c: Context)(x: c.Expr[Int])(y: c.Expr[Int]) = { + import c.universe._ + val sum = Apply(Select(x.tree, TermName("$minus")), List(y.tree)) + val body = Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(sum)) + c.Expr[Unit](body) + } +}
\ No newline at end of file |