Skip to content

Commit e144a4e

Browse files
committed
Partially revert change in TypeApplications#Reducer
1 parent 715106d commit e144a4e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

compiler/src/dotty/tools/dotc/core/TypeApplications.scala

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,9 @@ object TypeApplications {
172172
}
173173

174174
def apply(t: Type) = t match {
175-
case t @ TypeAlias(alias) =>
176-
applyArg(alias) match {
177-
case arg1: TypeBounds => arg1
178-
case arg1 => t.derivedTypeAlias(arg1)
179-
}
175+
case t @ TypeAlias(p: TypeParamRef) if hasWildcardArg(p) && canReduceWildcard(p) =>
176+
available -= p.paramNum // @!!! needed in the future?
177+
args(p.paramNum)
180178
case t @ AppliedType(tycon, args1) if tycon.typeSymbol.isClass =>
181179
t.derivedAppliedType(apply(tycon), args1.mapConserve(applyArg))
182180
case p: TypeParamRef if p.binder == tycon =>

0 commit comments

Comments
 (0)