[FE] Implement temporary resolution algorithm
This commit is contained in:
committed by
TeamCityServer
parent
d923c95671
commit
c34fe8d547
+35
@@ -0,0 +1,35 @@
|
||||
class A {
|
||||
val a = 1
|
||||
}
|
||||
|
||||
class B {
|
||||
val b = 2
|
||||
}
|
||||
|
||||
class C {
|
||||
val c = 3
|
||||
}
|
||||
|
||||
context(A, B) fun C.f() {}
|
||||
|
||||
fun main(a: A, b: B, c: C) {
|
||||
with(a) {
|
||||
with(b) {
|
||||
with(c) {
|
||||
f()
|
||||
}
|
||||
}
|
||||
}
|
||||
with(b) {
|
||||
with(c) {
|
||||
with(a) {
|
||||
f()
|
||||
}
|
||||
}
|
||||
}
|
||||
with(a) {
|
||||
with(c) {
|
||||
<!NO_CONTEXT_RECEIVER!>f()<!>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user