aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/macro-expand-multiple-arglists
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/macro-expand-multiple-arglists')
-rw-r--r--tests/disabled/macro/run/macro-expand-multiple-arglists/Impls_1.scala10
-rw-r--r--tests/disabled/macro/run/macro-expand-multiple-arglists/Macros_Test_2.scala4
2 files changed, 14 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
diff --git a/tests/disabled/macro/run/macro-expand-multiple-arglists/Macros_Test_2.scala b/tests/disabled/macro/run/macro-expand-multiple-arglists/Macros_Test_2.scala
new file mode 100644
index 000000000..09de5e02f
--- /dev/null
+++ b/tests/disabled/macro/run/macro-expand-multiple-arglists/Macros_Test_2.scala
@@ -0,0 +1,4 @@
+object Test extends dotty.runtime.LegacyApp {
+ def foo(x: Int)(y: Int): Unit = macro Impls.foo
+ foo(40)(2)
+} \ No newline at end of file