FIR: permit tailrec calls in inline lambdas

This commit is contained in:
pyos
2021-09-15 14:39:46 +02:00
committed by Mikhael Bogdanov
parent 2afab62dae
commit a4d1358e57
5 changed files with 9 additions and 69 deletions
@@ -1,6 +1,5 @@
// KT-16549
// IGNORE_BACKEND: JVM, JS
// IGNORE_FIR_DIAGNOSTICS_DIFF
class TailInline {
private inline fun act(action: () -> Unit) {
@@ -1,7 +1,6 @@
// KT-14961
// IGNORE_BACKEND: JVM, JS_IR, WASM
// WITH_RUNTIME
// IGNORE_FIR_DIAGNOSTICS_DIFF
fun listOfFactor(number: Int): List<Int> {
tailrec fun listOfFactor(number: Int, acc: List<Int>): List<Int> {