aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/customArgs/autoTuplingTest.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/customArgs/autoTuplingTest.scala')
-rw-r--r--tests/neg/customArgs/autoTuplingTest.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/neg/customArgs/autoTuplingTest.scala b/tests/neg/customArgs/autoTuplingTest.scala
new file mode 100644
index 000000000..7321a8382
--- /dev/null
+++ b/tests/neg/customArgs/autoTuplingTest.scala
@@ -0,0 +1,9 @@
+object autoTupling {
+
+ val x = Some(1, 2) // error when running with -language:noAutoTupling
+
+ x match {
+ case Some(a, b) => a + b // error // error when running with -language:noAutoTupling
+ case None =>
+ }
+}