blob: 30c3967fdf950eab0a8aa849ff214c62e07c53fa [file]
// IGNORE_BACKEND_K1: ANY
// LANGUAGE: +ContextParameters
class A(var x: String) {
fun foo(): String { return x }
}
var result = ""
context(a: A)
fun test() {
fun local(a: A) {
result = a.foo()
}
local(A("OK"))
}
fun box(): String {
with(A("not OK")) {
test()
}
return result
}