JVM_IR KT-36853 patch parents after tailrecPhase
This commit is contained in:
committed by
TeamCityServer
parent
34f8c7a68b
commit
ac6232b4ba
@@ -0,0 +1,10 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
tailrec fun tailrecDefault(fake: Int, fn: () -> String = { "OK" }): String {
|
||||
return if (fake == 0)
|
||||
tailrecDefault(1)
|
||||
else
|
||||
fn()
|
||||
}
|
||||
|
||||
fun box(): String = tailrecDefault(0)
|
||||
Reference in New Issue
Block a user