diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/types/ConeKotlinTypeComparator.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/types/ConeKotlinTypeComparator.kt index 6017acde49d..c8df69e13dd 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/types/ConeKotlinTypeComparator.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/types/ConeKotlinTypeComparator.kt @@ -136,7 +136,7 @@ object ConeKotlinTypeComparator : Comparator { } val sizeDiff = a.intersectedTypes.size - b.intersectedTypes.size if (sizeDiff != 0) { - return 0 + return sizeDiff } // Can't compare individual types from each side, since their orders are not guaranteed. return a.hashCode() - b.hashCode()