18 lines
258 B
Kotlin
Vendored
18 lines
258 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
|
|
interface A
|
|
interface B
|
|
|
|
context(A, B)
|
|
fun f(): Unit = TODO()
|
|
|
|
context(B, A)
|
|
fun f(): Unit = TODO()
|
|
|
|
fun test(a: A, b: B) {
|
|
with(a) {
|
|
with(b) {
|
|
<!OVERLOAD_RESOLUTION_AMBIGUITY!>f<!>()
|
|
}
|
|
}
|
|
} |