diff --git a/compiler/resolution/src/org/jetbrains/kotlin/types/TypeApproximator.kt b/compiler/resolution/src/org/jetbrains/kotlin/types/TypeApproximator.kt index 0160716f6e2..b6ba1793788 100644 --- a/compiler/resolution/src/org/jetbrains/kotlin/types/TypeApproximator.kt +++ b/compiler/resolution/src/org/jetbrains/kotlin/types/TypeApproximator.kt @@ -328,7 +328,8 @@ class TypeApproximator { // Inv is supertype for Inv if (!NewKotlinTypeChecker.equalTypes(argumentType, toSubType)) return type.defaultResult(toSuper) - newArguments[index] = argumentType.asTypeProjection() + // also Captured(out Nothing) = Nothing + newArguments[index] = toSubType.asTypeProjection() continue@loop }