Skip to content

Commit 0f76b83

Browse files
committed
update flow-match warning test for new .nn warnings
1 parent dcf2263 commit 0f76b83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/explicit-nulls/warn/flow-match.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
| ^^^^
1212
| Unreachable case
1313
-- [E030] Match case Unreachable Warning: tests/explicit-nulls/warn/flow-match.scala:14:9 ------------------------------
14-
14 | case s4 => s4.nn // warn
14+
14 | case s4 => s4 // warn
1515
| ^^
1616
| Unreachable case

tests/explicit-nulls/warn/flow-match.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
object MatchTest2 {
44
def f6(s: String | Null): String = s match {
5-
case s2 => s2.nn
5+
case s2 => "string"
66
case null => "other" // warn
77
case s3 => s3 // warn
88
}
@@ -11,6 +11,6 @@ object MatchTest2 {
1111
case null => "other"
1212
case null => "other" // warn
1313
case s3: String => s3
14-
case s4 => s4.nn // warn
14+
case s4 => s4 // warn
1515
}
1616
}

0 commit comments

Comments
 (0)