File tree 1 file changed +1
-5
lines changed
compiler/src/dotty/tools/dotc/typer
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -603,14 +603,10 @@ object ProtoTypes {
603
603
else if (tp.symbol.isStatic || (tp.prefix `eq` NoPrefix )) tp
604
604
else tp.derivedSelect(wildApprox(tp.prefix, theMap, seen))
605
605
case tp @ AppliedType (tycon, args) =>
606
- def dropBounds (tp : Type ) = tp match {
607
- case tp : TypeBounds if false => WildcardType (tp)
608
- case tp => tp
609
- }
610
606
wildApprox(tycon, theMap, seen) match {
611
607
case _ : WildcardType => WildcardType // this ensures we get a * type
612
608
case tycon1 => tp.derivedAppliedType(tycon1,
613
- args.mapConserve(arg => dropBounds( wildApprox(arg, theMap, seen) )))
609
+ args.mapConserve(arg => wildApprox(arg, theMap, seen)))
614
610
}
615
611
case tp : RefinedType => // default case, inlined for speed
616
612
tp.derivedRefinedType(
You can’t perform that action at this time.
0 commit comments