Minor, add workaround for KT-45008

This commit is contained in:
Alexander Udalov
2021-02-17 16:39:19 +01:00
parent 4d9cffccf2
commit 67e91b7ebd
@@ -153,7 +153,8 @@ abstract class AbstractTypeConstructor(storageManager: StorageManager) : TypeCon
if (other !is TypeConstructor) return false
// performance optimization: getFqName is slow method
if (other.hashCode() != hashCode()) return false
// Cast to Any is needed as a workaround for KT-45008.
if ((other as Any).hashCode() != hashCode()) return false
// Sometimes we can get two classes from different modules with different counts of type parameters.
// To avoid problems in type checker we suppose that it is different type constructors.