mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
11 lines
209 B
Kotlin
Vendored
11 lines
209 B
Kotlin
Vendored
fun box(): String {
|
|
val a: Any = 1
|
|
val b: Any = 42
|
|
val test = (a as Comparable<Any>).compareTo(b)
|
|
if (test != -1) return "Fail: $test"
|
|
|
|
return "OK"
|
|
}
|
|
|
|
// 0 compareTo
|
|
// 1 Intrinsics.compare |