We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcf2263 commit 0f76b83Copy full SHA for 0f76b83
tests/explicit-nulls/warn/flow-match.check
@@ -11,6 +11,6 @@
11
| ^^^^
12
| Unreachable case
13
-- [E030] Match case Unreachable Warning: tests/explicit-nulls/warn/flow-match.scala:14:9 ------------------------------
14
-14 | case s4 => s4.nn // warn
+14 | case s4 => s4 // warn
15
| ^^
16
tests/explicit-nulls/warn/flow-match.scala
@@ -2,7 +2,7 @@
2
3
object MatchTest2 {
4
def f6(s: String | Null): String = s match {
5
- case s2 => s2.nn
+ case s2 => "string"
6
case null => "other" // warn
7
case s3 => s3 // warn
8
}
@@ -11,6 +11,6 @@ object MatchTest2 {
case null => "other"
case s3: String => s3
- case s4 => s4.nn // warn
+ case s4 => s4 // warn
0 commit comments