Align the Boolean.hashCode() value across platforms
Boolean.hashCode() should return 1231/1237 for true/false correspondingly. As a part of efforts to stabilize Native stdlib.
This commit is contained in:
committed by
Space Team
parent
668157eb41
commit
193aa0f935
@@ -62,5 +62,5 @@ public class Boolean private constructor() : Comparable<Boolean> {
|
||||
@kotlin.internal.IntrinsicConstEvaluation
|
||||
public override fun toString() = if (this) "true" else "false"
|
||||
|
||||
public override fun hashCode() = if (this) 1 else 0
|
||||
public override fun hashCode() = if (this) 1231 else 1237
|
||||
}
|
||||
Reference in New Issue
Block a user