3a9ecf0bce
Change resolution to consider extensions to implicit receiver before members of another implicit receiver. Make synthesized member-like extensions resolve right after the members. #KT-10510 Fixed #KT-10219 Fixed
16 lines
235 B
Plaintext
Vendored
16 lines
235 B
Plaintext
Vendored
class A {
|
|
~A.foo~fun foo() = 1
|
|
}
|
|
class B {
|
|
}
|
|
~B.foo~fun B.foo() = 2
|
|
|
|
fun test(a: A, b: B) {
|
|
with (a) {
|
|
with (b) {
|
|
`B.foo`foo()
|
|
}
|
|
}
|
|
}
|
|
|
|
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f() |