[box-tests] Another version of reproducer for KT-56965

This commit is contained in:
Igor Chevdar
2023-03-02 16:58:57 +02:00
committed by Space Team
parent 99ec3215d9
commit 315d9089b0
19 changed files with 124 additions and 0 deletions
@@ -0,0 +1,17 @@
// NO_CHECK_LAMBDA_INLINING
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_IR_AGAINST_OLD
// FILE: 1.kt
inline fun foo(block: () -> String) = block()
inline fun bar() = foo {
val s = "O"
val obj = object {
fun local() = localInline { it }
inline fun localInline(block: (String) -> String) = block(s) + "K"
}
return obj.local()
}
// FILE: 2.kt
fun box() = bar()