File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform/patmat Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
417
417
else {
418
418
val ignoreWarning = args.forall(p => p.typeSymbol.is(BindDefinedType ) || p.isInstanceOf [TypeBounds ])
419
419
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)
421
421
422
422
tp.derivedAppliedType(tycon, args.map(t => WildcardType ))
423
423
}
@@ -426,7 +426,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
426
426
case AndType (tp1, tp2) =>
427
427
AndType (erase(tp1), erase(tp2))
428
428
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)
430
430
tp.derivedRefinedType(erase(tp.parent), tp.refinedName, WildcardType )
431
431
case _ => tp
432
432
}
You can’t perform that action at this time.
0 commit comments