Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
box
/
functions
/
recursiveIncrementCall.kt
blob: b5985d5606cdf869221a4483e54ba7c51c536ac3 [
file
] [
log
] [
blame
]
operator
fun
String
.
inc
()
:
String
{
if
(
this
==
""
)
{
return
"done"
}
var
s
=
""
return
++
s
}
fun box
()
:
String
{
var
s
=
"11test"
return
if
(++
s
==
"done"
)
"OK"
else
"FAIL"
}