3cf133bff7
local extensions aren't longer chosen before members
16 lines
228 B
Plaintext
16 lines
228 B
Plaintext
class A {
|
|
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() |