Files
kotlin/compiler/testData/codegen/box/functions/infixRecursiveCall.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

8 lines
167 B
Kotlin

fun Int.test(x : Int) : Int {
if (this > 1) {
return (this - 1) test x
}
return this
}
fun box() : String = if (10.test(10) == 1) "OK" else "FAIL"