blob: 5a3fe703ab3153aeeccc3f6d52d73f6e8f4bf4f6 [file] [log] [blame]
// WITH_STDLIB
interface Wrapper { fun runBlock() }
inline fun crossInlineBuildWrapper(crossinline block: () -> Unit) = object : Wrapper {
override fun runBlock() {
block()
}
}
class Container {
val wrapper = crossInlineBuildWrapper {
object { }
}
}
fun box(): String {
Container().wrapper.runBlock()
return "OK"
}