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 ffa3ed7 commit 8bf55faCopy full SHA for 8bf55fa
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -909,15 +909,15 @@ object messages {
909
910
case class MatchCaseUnreachable()(implicit ctx: Context)
911
extends Message(MatchCaseUnreachableID) {
912
- val kind = s"""Match case Unreachable"""
+ val kind = "Match case Unreachable"
913
val msg = "unreachable code"
914
val explanation = ""
915
}
916
917
case class MatchCaseOnlyNullWarning()(implicit ctx: Context)
918
extends Message(MatchCaseOnlyNullWarningID) {
919
- val kind = s"""Only null matched"""
920
- val msg = s"Only ${hl"null"} is matched. Consider use `case null =>` instead."
+ val kind = "Only null matched"
+ val msg = s"Only ${hl"null"} is matched. Consider using `case null =>` instead."
921
922
923
0 commit comments