mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
11 lines
186 B
Kotlin
Vendored
11 lines
186 B
Kotlin
Vendored
class C
|
|
|
|
operator fun C.compareTo(o: C) : Int {
|
|
if (this == o) return 0
|
|
if (o >= o) {
|
|
return 1
|
|
}
|
|
return -1
|
|
}
|
|
|
|
fun box() : String = if (C() > C()) "OK" else "FAIL" |