Skip to content

Commit 5777384

Browse files
committed
add one more test for unapplySeq
1 parent ce8e0f9 commit 5777384

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

tests/patmat/i3004.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ object O {
99
}
1010

1111
def m(c: C) = c match { case C(b) => b }
12-
}
12+
}

tests/patmat/t9232.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
13: Pattern Match Exhaustivity: Node2()
22
17: Pattern Match Exhaustivity: Node2(), Node1(Foo(Nil)), Node1(Foo(List(_, _*)))
3+
21: Pattern Match Exhaustivity: Node2(), Node1(Foo(Nil))

tests/patmat/t9232.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ object Test {
1717
def transformTree2(tree: Tree): Any = tree match {
1818
case Node1(Foo(1, _: _*)) => ???
1919
}
20+
21+
def transformTree3(tree: Tree): Any = tree match {
22+
case Node1(Foo(x, _: _*)) => ???
23+
}
2024
}

0 commit comments

Comments
 (0)