aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/t7777/Test_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/t7777/Test_2.scala')
-rw-r--r--tests/disabled/macro/run/t7777/Test_2.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/t7777/Test_2.scala b/tests/disabled/macro/run/t7777/Test_2.scala
new file mode 100644
index 000000000..7f84f64e4
--- /dev/null
+++ b/tests/disabled/macro/run/t7777/Test_2.scala
@@ -0,0 +1,6 @@
+object Test extends dotty.runtime.LegacyApp {
+ DynMacro.foo(1, 2) // prints "foo(1, 2)"
+ DynMacro.foo(3).bar(4, 5) // prints "bar(4, 5)", then "foo(3)"
+ DynMacro(6).bar(7) // prints "bar(7)", then "apply(6)"
+ DynMacro.foo(8)(9) // Fails!
+} \ No newline at end of file