blob: 6790b6af290a58e5f889ef31fcf1648aeea33f24 [file] [log] [blame]
// FILE: 1.kt
package test
inline fun test(cond: Boolean, crossinline cif: () -> String): String {
return if (cond) {
{ cif() }.let { it() }
}
else {
cif()
}
}
// FILE: 2.kt
import test.*
fun box(): String {
val s = "OK"
return test(true) {
{
s
}.let { it() }
}
}