Enum entry hashCode() should return identity hash code #KT-59223
This commit is contained in:
committed by
Space Team
parent
19c6622ff6
commit
d6867917c9
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user