blob: 57d63f28574e923c9e8dfa44657c16e2af46422d [file]
// IGNORE_BACKEND_K1: ANY
// LANGUAGE: +ContextParameters
class A(val a: String)
class B(val b: String)
fun box(): String {
context(a: A)
fun B.localFun(): String {
return this.b + a.a
}
with(A("K")) {
with(B("O")) {
return localFun()
}
}
}