Fix comparison of booleans. (#2468)

This commit is contained in:
Sergey Bogolepov
2018-12-14 17:39:25 +07:00
committed by GitHub
parent 4f9cea4ee2
commit e720844ff6
+1 -1
View File
@@ -44,7 +44,7 @@ public class Boolean private constructor(
@TypedIntrinsic(IntrinsicType.XOR)
external public infix fun xor(other: Boolean): Boolean
@TypedIntrinsic(IntrinsicType.SIGNED_COMPARE_TO)
@TypedIntrinsic(IntrinsicType.UNSIGNED_COMPARE_TO)
external public override fun compareTo(other: Boolean): Int
public fun equals(other: Boolean): Boolean = kotlin.native.internal.areEqualByValue(this, other)