[FIR] Make originalIfDefinitelyNotNullable more universal

It takes `ConeSimpleKotlinType` but not `ConeKotlinType` as input parameter
This commit is contained in:
Ivan Kochurkin
2023-11-16 16:09:22 +01:00
committed by Space Team
parent ff50d40b32
commit 0935e2b270
@@ -75,7 +75,7 @@ fun ConeKotlinType.lowerBoundIfFlexible(): ConeSimpleKotlinType {
}
}
fun ConeKotlinType.originalIfDefinitelyNotNullable(): ConeKotlinType {
fun ConeSimpleKotlinType.originalIfDefinitelyNotNullable(): ConeSimpleKotlinType {
return when (this) {
is ConeDefinitelyNotNullType -> original
else -> this