aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/autoTuplingTest.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/autoTuplingTest.scala')
-rw-r--r--tests/neg/autoTuplingTest.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/neg/autoTuplingTest.scala b/tests/neg/autoTuplingTest.scala
new file mode 100644
index 000000000..d4a698271
--- /dev/null
+++ b/tests/neg/autoTuplingTest.scala
@@ -0,0 +1,11 @@
+import dotty.language.noAutoTupling
+
+object autoTuplingNeg {
+
+ val x = Some(1, 2)
+
+ x match {
+ case Some(a, b) => a + b
+ case None =>
+ }
+}