Files
kotlin-fork/compiler/testData/resolvedCalls/hasBothThisObjectAndReceiverArgumentWithoutExplicitReceiver.kt
T
Svetlana Isakova 29ab166e1b Refactoring: AbstractResolvedCallsTest
Render resolved call to a separate file
2014-07-08 14:48:19 +04:00

18 lines
211 B
Kotlin

// !CALL: foo
class A {
fun B.foo() {}
}
trait B
fun bar(a: A, b: B) {
with (a) {
with (b) {
foo()
}
}
}
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()