mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
12 lines
216 B
Kotlin
Vendored
12 lines
216 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
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" |