blob: cb252e77490ec779a2a1bca7a97a09f4807bca67 [file] [log] [blame]
// NO_CHECK_LAMBDA_INLINING
// WITH_STDLIB
// FILE: 1.kt
package test
inline fun inlineFun(p: () -> Unit) {
p()
}
// FILE: 2.kt
import test.*
fun box(): String {
var z = "fail"
inlineFun {
val obj = object {
val _delegate by lazy {
z = "OK"
}
}
obj._delegate
}
return z;
}