JVM: write back to tailrec function parameters if possible

This makes the debugger update the values when entering a recursive
call, and also uses fewer variable slots.

This may also work on the JS backend, but Native would probably require
something else.

^KT-47203 Fixed
This commit is contained in:
pyos
2022-04-25 13:48:21 +02:00
committed by max-kammerer
parent ca446f008e
commit 239bcea3b9
5 changed files with 94 additions and 103 deletions
@@ -249,4 +249,7 @@ open class JvmGeneratorExtensionsImpl(
}
return null
}
override val parametersAreAssignable: Boolean
get() = true
}