diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/substitution/ConeSubstitutor.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/substitution/ConeSubstitutor.kt index 75e8ef5b97e..447a47f1460 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/substitution/ConeSubstitutor.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/substitution/ConeSubstitutor.kt @@ -62,7 +62,7 @@ abstract class AbstractConeSubstitutor : ConeSubstitutor() { override fun substituteOrNull(type: ConeKotlinType): ConeKotlinType? { val newType = substituteType(type) - return (newType ?: type.substituteRecursive()) ?: newType + return (newType ?: type.substituteRecursive()) } private fun ConeKotlinType.substituteRecursive(): ConeKotlinType? {