Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/conflicting.kt
T
2021-12-14 15:19:42 +03:00

18 lines
314 B
Kotlin
Vendored

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