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:
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()
|
||||
|
||||
Reference in New Issue
Block a user