aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/macro-impl-relaxed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/macro-impl-relaxed')
-rw-r--r--tests/disabled/macro/run/macro-impl-relaxed/Macros_1.scala14
-rw-r--r--tests/disabled/macro/run/macro-impl-relaxed/Test_2.scala6
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/macro-impl-relaxed/Macros_1.scala b/tests/disabled/macro/run/macro-impl-relaxed/Macros_1.scala
new file mode 100644
index 000000000..420eb2a39
--- /dev/null
+++ b/tests/disabled/macro/run/macro-impl-relaxed/Macros_1.scala
@@ -0,0 +1,14 @@
+import language.experimental.macros
+import scala.reflect.macros.blackbox.Context
+
+object Macros {
+ def implUU(c: Context)(x: c.Tree): c.Tree = x
+ def implTU(c: Context)(x: c.Expr[Int]): c.Tree = x.tree
+ def implUT(c: Context)(x: c.Tree): c.Expr[Int] = c.Expr[Int](x)
+ def implTT(c: Context)(x: c.Expr[Int]): c.Expr[Int] = x
+
+ def fooUU(x: Int): Int = macro implUU
+ def fooTU(x: Int): Int = macro implTU
+ def fooUT(x: Int): Int = macro implUT
+ def fooTT(x: Int): Int = macro implTT
+} \ No newline at end of file
diff --git a/tests/disabled/macro/run/macro-impl-relaxed/Test_2.scala b/tests/disabled/macro/run/macro-impl-relaxed/Test_2.scala
new file mode 100644
index 000000000..460626272
--- /dev/null
+++ b/tests/disabled/macro/run/macro-impl-relaxed/Test_2.scala
@@ -0,0 +1,6 @@
+object Test extends dotty.runtime.LegacyApp {
+ println(Macros.fooUU(2))
+ println(Macros.fooTU(2))
+ println(Macros.fooUT(2))
+ println(Macros.fooTT(2))
+} \ No newline at end of file