[FIR] Add checker for EXPANSIVE_INHERITANCE
^KT-59402 Fixed
This commit is contained in:
@@ -53,6 +53,14 @@ private fun ConeKotlinType.contains(predicate: (ConeKotlinType) -> Boolean, visi
|
||||
|
||||
// ----------------------------------- Transformations -----------------------------------
|
||||
|
||||
fun ConeKotlinType.unwrapLowerBound(): ConeSimpleKotlinType {
|
||||
return when(this) {
|
||||
is ConeDefinitelyNotNullType -> original.unwrapLowerBound()
|
||||
is ConeFlexibleType -> lowerBound.unwrapLowerBound()
|
||||
is ConeSimpleKotlinType -> this
|
||||
}
|
||||
}
|
||||
|
||||
fun ConeKotlinType.upperBoundIfFlexible(): ConeSimpleKotlinType {
|
||||
return when (this) {
|
||||
is ConeSimpleKotlinType -> this
|
||||
|
||||
Reference in New Issue
Block a user