Skip to content

Commit 1aad0a1

Browse files
authored
Merge pull request #2098 from dotty-staging/fix-i1960
Fix #1960: add test
2 parents 246e7b7 + c1e83ef commit 1aad0a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/run/i1960.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
case class CC2[A, B](_1: A, _2: B)
2+
3+
object Test {
4+
def main(args: Array[String]): Unit = {
5+
val CC2(_, CC2(a, _)) = CC2(0, CC2(1, 2))
6+
assert(a == 1)
7+
}
8+
}

0 commit comments

Comments
 (0)