Files
kotlin-fork/compiler/testData/codegen/boxInline/anonymousObject/kt13182.kt
T

26 lines
319 B
Kotlin
Vendored

// FILE: 1.kt
package test
inline fun test(cond: Boolean, crossinline cif: () -> String): String {
return if (cond) {
{ cif() }()
}
else {
cif()
}
}
// FILE: 2.kt
import test.*
fun box(): String {
val s = "OK"
return test(true) {
{
s
}()
}
}