Files
kotlin-fork/compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver2.resolve
T
2015-12-14 16:49:29 +03:00

12 lines
189 B
Plaintext
Vendored

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