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

13 lines
187 B
Kotlin

// !CALL: invoke
class Foo() {
fun Int.invoke() {}
}
fun bar(f: Foo, i: Int) {
with (i) {
f()
}
}
fun <T, R> with(receiver: T, f: T.() -> R) : R = throw Exception()