From c1e83ef752cf7f14209ed5c26b3b6acfbca80945 Mon Sep 17 00:00:00 2001 From: liu fengyun Date: Tue, 14 Mar 2017 10:37:13 +0100 Subject: add test for #1960 --- tests/run/i1960.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/run/i1960.scala (limited to 'tests/run') 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) + } +} -- cgit v1.2.3