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 c53d6ec commit daa5b84Copy full SHA for daa5b84
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -882,11 +882,13 @@ object messages {
882
883
case class UncheckedTypePattern(msg: String)(implicit ctx: Context)
884
extends Message(UncheckedTypePatternID) {
885
- val kind = "Unchecked Type Pattern"
+ val kind = "Pattern Match Exhaustivity"
886
887
val explanation =
888
hl"""|Type arguments and type refinements are erased during compile time, thus it's
889
|impossible to check them at run-time.
890
+ |
891
+ |You can either replace the type arguments by `_` or use `@unchecked`.
892
|"""
893
}
894
0 commit comments