diff options
author | liu fengyun <liu@fengy.me> | 2017-03-14 10:37:13 +0100 |
---|---|---|
committer | liu fengyun <liu@fengy.me> | 2017-03-14 10:37:13 +0100 |
commit | c1e83ef752cf7f14209ed5c26b3b6acfbca80945 (patch) | |
tree | 4d4899d8bcabcda8d5e929eb02c4478ca1fd563e /tests | |
parent | 921f8bffc18b19449b2c1ad68c32725a7b7532e2 (diff) | |
download | dotty-c1e83ef752cf7f14209ed5c26b3b6acfbca80945.tar.gz dotty-c1e83ef752cf7f14209ed5c26b3b6acfbca80945.tar.bz2 dotty-c1e83ef752cf7f14209ed5c26b3b6acfbca80945.zip |
add test for #1960
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run/i1960.scala | 8 |
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) + } +} |