[NI] Use correct type in TypeApproximator for Invariant projection
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
85e34163bb
commit
4848f8e3da
@@ -328,7 +328,8 @@ class TypeApproximator {
|
|||||||
// Inv<Foo!> is supertype for Inv<Foo?>
|
// Inv<Foo!> is supertype for Inv<Foo?>
|
||||||
if (!NewKotlinTypeChecker.equalTypes(argumentType, toSubType)) return type.defaultResult(toSuper)
|
if (!NewKotlinTypeChecker.equalTypes(argumentType, toSubType)) return type.defaultResult(toSuper)
|
||||||
|
|
||||||
newArguments[index] = argumentType.asTypeProjection()
|
// also Captured(out Nothing) = Nothing
|
||||||
|
newArguments[index] = toSubType.asTypeProjection()
|
||||||
continue@loop
|
continue@loop
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user