dcd5cad427
#KT-2280 Fixed A closure's constructor should not take an instance of itself as an argument, because it would require caller to pass yet uninitialized value. Instead it should initialize a corresponding field with 'this'
8 lines
110 B
Kotlin
8 lines
110 B
Kotlin
fun box(): String {
|
|
fun rmrf(i: Int) {
|
|
if (i > 0) rmrf(i - 1)
|
|
}
|
|
rmrf(5)
|
|
return "OK"
|
|
}
|