FIR: fix type comparator

As many other places did, this one is supposed to return the diff value
if the given two intersection types' sizes are different.
This commit is contained in:
Jinseong Jeon
2021-06-20 21:57:07 -07:00
committed by TeamCityServer
parent cdfb2fb3d9
commit 64a275cf83
@@ -136,7 +136,7 @@ object ConeKotlinTypeComparator : Comparator<ConeKotlinType> {
}
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()