Minor, add workaround for KT-45008
This commit is contained in:
@@ -153,7 +153,8 @@ abstract class AbstractTypeConstructor(storageManager: StorageManager) : TypeCon
|
|||||||
if (other !is TypeConstructor) return false
|
if (other !is TypeConstructor) return false
|
||||||
|
|
||||||
// performance optimization: getFqName is slow method
|
// 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.
|
// 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.
|
// To avoid problems in type checker we suppose that it is different type constructors.
|
||||||
|
|||||||
Reference in New Issue
Block a user