Skip to content

Commit 0cce292

Browse files
committed
Adapt error message explanation to use .runtimeChecked
1 parent 5703424 commit 0cce292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ class UncheckedTypePattern(argType: Type, whyNot: String)(using Context)
922922
i"""|Type arguments and type refinements are erased during compile time, thus it's
923923
|impossible to check them at run-time.
924924
|
925-
|You can either replace the type arguments by ${hl("_")} or use `@unchecked`.
925+
|You can either replace the type arguments by ${hl("_")} or use `.runtimeChecked`.
926926
|"""
927927
}
928928

@@ -3518,7 +3518,7 @@ final class OnlyFullyDependentAppliedConstructorType()(using Context)
35183518
override protected def explain(using Context): String = ""
35193519

35203520
final class IllegalContextBounds(using Context) extends SyntaxMsg(IllegalContextBoundsID):
3521-
override protected def msg(using Context): String =
3521+
override protected def msg(using Context): String =
35223522
i"Context bounds are not allowed in this position"
35233523

35243524
override protected def explain(using Context): String = ""

0 commit comments

Comments
 (0)