Skip to content

Commit daa5b84

Browse files
committed
address reviews
1 parent c53d6ec commit daa5b84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,11 +882,13 @@ object messages {
882882

883883
case class UncheckedTypePattern(msg: String)(implicit ctx: Context)
884884
extends Message(UncheckedTypePatternID) {
885-
val kind = "Unchecked Type Pattern"
885+
val kind = "Pattern Match Exhaustivity"
886886

887887
val explanation =
888888
hl"""|Type arguments and type refinements are erased during compile time, thus it's
889889
|impossible to check them at run-time.
890+
|
891+
|You can either replace the type arguments by `_` or use `@unchecked`.
890892
|"""
891893
}
892894

0 commit comments

Comments
 (0)