blob: 518154bba7f24d05b8a7506d62f8adebc5a5c944 [file]
// LANGUAGE: +ContextParameters
class A {
fun foo(): String {
return "not OK"
}
}
fun box(): String {
context(a: A)
fun foo(): String {
return "OK"
}
return with(A()) { foo() }
}