Files
kotlin-fork/compiler/testData/resolve/candidatesPriority/memberVsExtension3.resolve
T
Svetlana Isakova 3cf133bff7 changed local extensions priority
local extensions aren't longer chosen before members
2013-06-20 13:43:01 +04:00

13 lines
185 B
Plaintext
Vendored

class A {
fun ~member~foo() = 1
}
fun A.foo() = 2
fun test(a: A) {
with (a) {
this.`member`foo()
}
}
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()