K2: introduce unwrapFlexibleAndDefinitelyNotNull

This commit is contained in:
Mikhail Glukhikh
2023-12-11 15:11:36 +01:00
committed by Space Team
parent b76452e15f
commit 37789cf7f5
3 changed files with 6 additions and 2 deletions
@@ -118,6 +118,10 @@ fun ConeSimpleKotlinType.unwrapDefinitelyNotNull(): ConeSimpleKotlinType {
}
}
fun ConeKotlinType.unwrapFlexibleAndDefinitelyNotNull(): ConeKotlinType {
return lowerBoundIfFlexible().unwrapDefinitelyNotNull()
}
class ConeCapturedTypeConstructor(
val projection: ConeTypeProjection,
var supertypes: List<ConeKotlinType>? = null,