FIR: Refine makesSenseToBeDefinitelyNotNull
Make it work just the same as the analogue from FE 1.0 This change is necessary since many tests start failing after we began reporting diagnostics after call completion
This commit is contained in:
committed by
teamcityserver
parent
a700fdc312
commit
42d387925d
@@ -128,7 +128,11 @@ private fun coneFlexibleOrSimpleType(
|
||||
type is ConeTypeParameterType || type.isNullable
|
||||
}
|
||||
) {
|
||||
return ConeDefinitelyNotNullType.create(lowerBound) ?: lowerBound
|
||||
return ConeDefinitelyNotNullType.create(
|
||||
lowerBound,
|
||||
session.typeContext,
|
||||
useCorrectedNullabilityForFlexibleTypeParameters = true
|
||||
) ?: lowerBound
|
||||
}
|
||||
}
|
||||
return lowerBound
|
||||
|
||||
Reference in New Issue
Block a user