blob: 34ab176ddfd3144a75ae4521014ee31a4eb4a3a3 [file]
// TARGET_BACKEND: JVM
// FILE: 1.kt
package test
class C {
var x: () -> Unit
inline get() = {}
inline set(noinline value) {
bar(value)
}
fun bar(i: I) = i.foo()
}
fun interface I {
fun foo()
}
// FILE: 2.kt
import test.*
fun box(): String {
var result = "fail"
val c = C()
c.x = { result = "OK" }
return result
}