Skip to content

Commit 56c861b

Browse files
committed
address review: update test case
1 parent 9bcf626 commit 56c861b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/patmat/3144b.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
5: Unchecked Type Pattern
2-
4: Match case Unreachable
1+
4: Unchecked Type Pattern
2+
10: Unchecked Type Pattern

tests/patmat/3144b.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
class Test {
22
def f(x: Any): Int = x match {
33
case xs: List[Int] @unchecked => xs.head
4+
case xs: Array[List[Int]] => 3
5+
case _ => 0
6+
}
7+
8+
def g(x: Any): Int = x match {
49
case xs: List[Int @unchecked] => xs.head
510
case xs: Array[List[Int]] => 3
611
case _ => 0

0 commit comments

Comments
 (0)