blob: 178261a865348ef4eb2167d1bc1e6256f7433d1f [file]
class C(val value: Any)
fun box(): String {
val c1 = C(-0.0)
val c2 = C(0.toByte())
val cmp = (c1.value as Double).compareTo(c2.value as Byte)
if (cmp != -1) return "Failed: cmp=$cmp"
return "OK"
}