blob: 646603dd6c37166c54a9e13914f2b2fa7d436f90 [file]
// TARGET_BACKEND: JVM_IR
// 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 }
}