Skip to content

Commit 80de4d2

Browse files
liufengyunsmarter
andauthored
Update compiler/src/dotty/tools/dotc/reporting/messages.scala
Co-authored-by: Guillaume Martres <[email protected]>
1 parent d8a1eed commit 80de4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/messages.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ import transform.SymUtils._
838838

839839
class MatchCaseOnlyNullWarning()(using Context)
840840
extends PatternMatchMsg(MatchCaseOnlyNullWarningID) {
841-
def msg = em"""Unreachable case. If ${hl("null")} is matched, consider using ${hl("case null =>")}."""
841+
def msg = em"""Unreachable case except for ${hl("null")} (if this is intentional, consider writing ${hl("case null =>")} instead)."""
842842
def explain = ""
843843
}
844844

0 commit comments

Comments
 (0)