blob: 1ee19e490ac0ba9038d4e470ad3a41098412f6ef [file]
// LANGUAGE: +ContextParameters
// WITH_STDLIB
// WITH_COROUTINES
interface Context
class Receiver
interface Action {
context(_: Context)
fun run()
}
fun execute(block: suspend context(Context) Receiver.(Action) -> Unit) = Unit
fun box(): String {
execute { it.run() }
return "OK"
}