We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8a1eed commit 80de4d2Copy full SHA for 80de4d2
compiler/src/dotty/tools/dotc/reporting/messages.scala
@@ -838,7 +838,7 @@ import transform.SymUtils._
838
839
class MatchCaseOnlyNullWarning()(using Context)
840
extends PatternMatchMsg(MatchCaseOnlyNullWarningID) {
841
- def msg = em"""Unreachable case. If ${hl("null")} is matched, consider using ${hl("case null =>")}."""
+ def msg = em"""Unreachable case except for ${hl("null")} (if this is intentional, consider writing ${hl("case null =>")} instead)."""
842
def explain = ""
843
}
844
0 commit comments