K2: introduce unwrapFlexibleAndDefinitelyNotNull
This commit is contained in:
committed by
Space Team
parent
b76452e15f
commit
37789cf7f5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user