[FIR] Fix raw type nullability computation
Consider the nullability of the type arguments, not of the type. This fixes a false positive ARGUMENT_TYPE_MISMATCH. #KT-66294 Fixed
This commit is contained in:
committed by
Space Team
parent
df878918ee
commit
172df04c9b
@@ -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, makeNullable = false)
|
||||
else -> typeParameterSymbols?.getProjectionsForRawType(session, nullabilities = null)
|
||||
?: Array(classifier.allTypeParametersNumber()) { ConeStarProjection }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user