Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/conflictingWithDifferentOrder.fir.kt
T
Kirill Rakhman 951b299268 [FIR] Rewrite redeclaration checks
#KT-60124 Fixed
#KT-60573 Fixed
2023-07-27 08:06:20 +00:00

19 lines
352 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) {
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER, NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>with<!>(a) {
with(b) {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>f<!>()
}
}
}