blob: 73e462b69f3033f97c9c8c56ce98b5a5534e0f78 [file]
// TARGET_BACKEND: JVM
// LANGUAGE: +ContextParameters
fun String.self() = this
context(s: String)
fun f() = s.self()
context(s: String)
val v: String get() = s.self()
fun <T, R> context(t: T, f: context(T) () -> R): R = f(t)
fun box(): String {
return with("O") { f() } + context("K") { v }
}