ConeSimpleKotlinType: introduce & use unwrapDefinitelyNotNull
This commit is contained in:
committed by
TeamCityServer
parent
d1194e5fd2
commit
27d4c745cb
@@ -175,6 +175,13 @@ fun ConeKotlinType.lowerBoundIfFlexible(): ConeSimpleKotlinType {
|
||||
}
|
||||
}
|
||||
|
||||
fun ConeSimpleKotlinType.unwrapDefinitelyNotNull(): ConeSimpleKotlinType {
|
||||
return when (this) {
|
||||
is ConeDefinitelyNotNullType -> original
|
||||
else -> this
|
||||
}
|
||||
}
|
||||
|
||||
class ConeCapturedTypeConstructor(
|
||||
val projection: ConeTypeProjection,
|
||||
var supertypes: List<ConeKotlinType>? = null,
|
||||
|
||||
Reference in New Issue
Block a user