// !LANGUAGE: +ContextReceivers interface A interface B context(A, B) fun f(): Unit = TODO() context(A, B) fun f(): Unit = TODO() fun test(a: A, b: B) { with(a) { with(b) { f() } } }