Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
ieee754
/
anyCastToPrimitiveCompareTo1.kt
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"
}