Files
kotlin/compiler/testData/codegen/box/functions/recursiveIncrementCall.kt
Andrey Breslav 93160431f9 Fix recusrive calls in infix and prefix form
The infamous invokeOperation() method removed
2013-11-29 12:52:58 +04:00

12 lines
201 B
Kotlin

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"
}