blob: c251afa7cab4ea7970052d05b64a559de94814c4 [file]
// IGNORE_BACKEND_K1: ANY
// LANGUAGE: +ContextParameters +ExplicitContextArguments
context(noinline ctx: () -> Unit) inline fun foo() {
val ctxSink = ctx
}
fun print(s: String) { }
fun box(): String {
foo(ctx = { print("OK") })
val f: () -> Unit = { print("OK") }
context(f) {
foo()
}
return "OK"
}