aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/run/i1960.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run/i1960.scala b/tests/run/i1960.scala
new file mode 100644
index 000000000..a3d441d17
--- /dev/null
+++ b/tests/run/i1960.scala
@@ -0,0 +1,8 @@
+case class CC2[A, B](_1: A, _2: B)
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ val CC2(_, CC2(a, _)) = CC2(0, CC2(1, 2))
+ assert(a == 1)
+ }
+}