Enum entry hashCode() should return identity hash code #KT-59223

This commit is contained in:
Abduqodiri Qurbonzoda
2023-06-11 03:14:57 +03:00
committed by Space Team
parent 19c6622ff6
commit d6867917c9
17 changed files with 96 additions and 4 deletions
@@ -24,10 +24,6 @@ public abstract class Enum<E: Enum<E>>(@kotlin.internal.IntrinsicConstEvaluation
return this === other
}
public override final fun hashCode(): Int {
return ordinal
}
public override fun toString(): String {
return name
}