[box-tests] Added a reproducer for KT-56965

This commit is contained in:
Igor Chevdar
2023-02-28 12:58:20 +02:00
committed by Space Team
parent 9b3c77de8b
commit c038bbde08
19 changed files with 122 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
// NO_CHECK_LAMBDA_INLINING
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR
// FILE: 1.kt
inline fun foo(block: () -> String) = block()
// FILE: 2.kt
fun box() = foo {
val s = "O"
val obj = object {
fun local() = localInline { it }
inline fun localInline(block: (String) -> String) = block(s) + "K"
}
return obj.local()
}