Skip to content

Commit 17cf095

Browse files
committed
fix typos
1 parent 41c3dca commit 17cf095

File tree

1 file changed

+2
-2
lines changed
  • compiler/src/dotty/tools/dotc/transform/patmat

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/patmat/Space.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
417417
else {
418418
val ignoreWarning = args.forall(p => p.typeSymbol.is(BindDefinedType) || p.isInstanceOf[TypeBounds])
419419
if (!ignoreWarning)
420-
ctx.warning(UncheckedTypePattern("type arguments are not unchecked since they are eliminated by erasure"), pos)
420+
ctx.warning(UncheckedTypePattern("type arguments are not checked since they are eliminated by erasure"), pos)
421421

422422
tp.derivedAppliedType(tycon, args.map(t => WildcardType))
423423
}
@@ -426,7 +426,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
426426
case AndType(tp1, tp2) =>
427427
AndType(erase(tp1), erase(tp2))
428428
case tp: RefinedType =>
429-
ctx.warning(UncheckedTypePattern("type refinement is not unchecked since it is eliminated by erasure"), pos)
429+
ctx.warning(UncheckedTypePattern("type refinement is not checked since it is eliminated by erasure"), pos)
430430
tp.derivedRefinedType(erase(tp.parent), tp.refinedName, WildcardType)
431431
case _ => tp
432432
}

0 commit comments

Comments
 (0)