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