KT-4349 Make jet.Boolean implement Comparable
#KT-4349
This commit is contained in:
@@ -37,7 +37,7 @@ public trait Hashable {
|
||||
public fun equals(other : Any?) : Boolean
|
||||
}
|
||||
|
||||
public class Boolean private () {
|
||||
public class Boolean private () : Comparable<Boolean> {
|
||||
public fun not() : Boolean
|
||||
|
||||
public fun and(other : Boolean) : Boolean
|
||||
@@ -46,6 +46,8 @@ public class Boolean private () {
|
||||
|
||||
public fun xor(other : Boolean) : Boolean
|
||||
|
||||
public override fun compareTo(other : Boolean) : Int
|
||||
|
||||
public fun equals(other : Any?) : Boolean
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user