Revert "[FIR] Let attributes opt-in to participating in ConeClassLikeTypeImpl structural equality"

This reverts commit 9189154cae.
This commit is contained in:
Kirill Rakhman
2024-01-16 09:14:22 +01:00
parent 121536d2e5
commit 8c04206709
11 changed files with 92 additions and 58 deletions
@@ -25,25 +25,6 @@ class EnhancedTypeForWarningAttribute(
override val keepInInferredDeclarationType: Boolean
get() = true
override val implementsEquality: Boolean
get() = true
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as EnhancedTypeForWarningAttribute
if (coneType != other.coneType) return false
return true
}
override fun hashCode(): Int {
var result = coneType.hashCode()
return result
}
}
val ConeAttributes.enhancedTypeForWarning: EnhancedTypeForWarningAttribute? by ConeAttributes.attributeAccessor<EnhancedTypeForWarningAttribute>()