[FE] Make OverloadChecker take CR into account

This commit is contained in:
Anastasia.Shadrina
2021-12-14 06:39:51 +07:00
committed by teamcity
parent 2bb155edc1
commit 343a860553
14 changed files with 259 additions and 4 deletions
@@ -0,0 +1,18 @@
// !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<!>()
}
}
}