[FE] Make OverloadChecker take CR into account
This commit is contained in:
committed by
teamcity
parent
2bb155edc1
commit
343a860553
Vendored
+18
@@ -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<!>()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user