blob: 27373d368dbe912aae8987b0e95e6d387e1336d3 [file]
// LANGUAGE: +ContextParameters
class Context
class Extended
class Containing {
context(_: Context) fun Extended.foo(obj: Any? = null) {}
}
fun box(): String {
with (Containing()) {
with (Context()) {
Extended().foo()
}
}
return "OK"
}