aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t7294.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t7294.scala')
-rw-r--r--tests/pos/t7294.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/t7294.scala b/tests/pos/t7294.scala
new file mode 100644
index 000000000..ccac2b140
--- /dev/null
+++ b/tests/pos/t7294.scala
@@ -0,0 +1,6 @@
+object Test {
+ // no fruitless warning as Tuple2 isn't (yet) final.
+ // The corresponding `neg` test will treat it as final
+ // for the purposes of these tests under -Xfuture.
+ (1, 2) match { case Seq() => 0; case _ => 1 }
+}