We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 715106d commit e144a4eCopy full SHA for e144a4e
compiler/src/dotty/tools/dotc/core/TypeApplications.scala
@@ -172,11 +172,9 @@ object TypeApplications {
172
}
173
174
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
- }
+ case t @ TypeAlias(p: TypeParamRef) if hasWildcardArg(p) && canReduceWildcard(p) =>
+ available -= p.paramNum // @!!! needed in the future?
+ args(p.paramNum)
180
case t @ AppliedType(tycon, args1) if tycon.typeSymbol.isClass =>
181
t.derivedAppliedType(apply(tycon), args1.mapConserve(applyArg))
182
case p: TypeParamRef if p.binder == tycon =>
0 commit comments