Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
functions
/
recursiveCompareTo.kt
blob: b96d958d0eabe98ce560e8765ed706297d8ffba8 [
file
]
// 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"