aboutsummaryrefslogtreecommitdiff
path: root/tests/run
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2017-03-14 16:09:24 +0100
committerGitHub <noreply@github.com>2017-03-14 16:09:24 +0100
commit1aad0a1433e1261af252d2240d63f6f01da65cef (patch)
tree6a1dbf4230f43a428dee7f7983f5751c8dc267af /tests/run
parent246e7b7ac5dbf428ffcc737b4107729422280f22 (diff)
parentc1e83ef752cf7f14209ed5c26b3b6acfbca80945 (diff)
downloaddotty-1aad0a1433e1261af252d2240d63f6f01da65cef.tar.gz
dotty-1aad0a1433e1261af252d2240d63f6f01da65cef.tar.bz2
dotty-1aad0a1433e1261af252d2240d63f6f01da65cef.zip
Merge pull request #2098 from dotty-staging/fix-i1960
Fix #1960: add test
Diffstat (limited to 'tests/run')
-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)
+ }
+}