Files
kotlin-fork/compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver2.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

12 lines
181 B
Plaintext

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