[FIR] Fix nullability of types produced by ConeRawScopeSubstitutor

#KT-66067 Fixed
This commit is contained in:
Kirill Rakhman
2024-02-28 14:52:06 +01:00
committed by Space Team
parent b6a6b12f0f
commit 5bca945d05
25 changed files with 369 additions and 5 deletions
@@ -200,7 +200,7 @@ private fun JavaClassifierType.toConeKotlinTypeForFlexibleBound(
// Given `C<T : X>`, `C` -> `C<X>..C<*>?`.
when {
mode.insideAnnotation -> Array(classifier.allTypeParametersNumber()) { ConeStarProjection }
else -> typeParameterSymbols?.getProjectionsForRawType(session)
else -> typeParameterSymbols?.getProjectionsForRawType(session, makeNullable = false)
?: Array(classifier.allTypeParametersNumber()) { ConeStarProjection }
}
}