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