summaryrefslogtreecommitdiff
path: root/test/files/pos/t8934a/Test_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t8934a/Test_2.scala')
-rw-r--r--test/files/pos/t8934a/Test_2.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/t8934a/Test_2.scala b/test/files/pos/t8934a/Test_2.scala
new file mode 100644
index 0000000000..e1792ed3c5
--- /dev/null
+++ b/test/files/pos/t8934a/Test_2.scala
@@ -0,0 +1,12 @@
+object Test {
+ "" match {
+ case Unapply(a, b) =>
+ a: Int
+ b: String
+ case UnapplySeq(a, b1, b2) =>
+ a: Int
+ b1: String
+ b2: String
+ }
+}
+// These used to fail `too many patterns` under -Ymacro-expand:discard