aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/macro-expand-unapply-a
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/macro-expand-unapply-a')
-rw-r--r--tests/pending/run/macro-expand-unapply-a/Impls_Macros_1.scala15
-rw-r--r--tests/pending/run/macro-expand-unapply-a/Test_2.scala6
2 files changed, 0 insertions, 21 deletions
diff --git a/tests/pending/run/macro-expand-unapply-a/Impls_Macros_1.scala b/tests/pending/run/macro-expand-unapply-a/Impls_Macros_1.scala
deleted file mode 100644
index 64f16c6a8..000000000
--- a/tests/pending/run/macro-expand-unapply-a/Impls_Macros_1.scala
+++ /dev/null
@@ -1,15 +0,0 @@
-import scala.reflect.macros.whitebox.Context
-
-object Helper {
- def unapplySeq[T](x: List[T]): Option[Seq[T]] = List.unapplySeq[T](x)
-}
-
-object Macros {
- def impl[T: c.WeakTypeTag](c: Context)(x: c.Expr[List[T]]) = {
- c.universe.reify(Helper.unapplySeq(x.splice))
- }
-
- object UnapplyMacro {
- def unapplySeq[T](x: List[T]): Option[Seq[T]] = macro impl[T]
- }
-} \ No newline at end of file
diff --git a/tests/pending/run/macro-expand-unapply-a/Test_2.scala b/tests/pending/run/macro-expand-unapply-a/Test_2.scala
deleted file mode 100644
index ce52df802..000000000
--- a/tests/pending/run/macro-expand-unapply-a/Test_2.scala
+++ /dev/null
@@ -1,6 +0,0 @@
-import Macros._
-
-object Test extends dotty.runtime.LegacyApp {
- List(1, 2) match { case UnapplyMacro(x, y) => println((x, y)) }
- List(1, 2, 3) match { case UnapplyMacro(x, y, z) => println((x, y, z)) }
-} \ No newline at end of file