Files
kotlin-fork/compiler/testData/resolvedCalls/invoke/implicitReceiverForInvoke.txt
T
Alexander Udalov 877129340f Revert "Rename Extension annotation to ExtensionFunctionType"
This reverts commit 460dad135c.

The old compiler will not see the new runtime correctly. Postponing this until
1.0
2015-11-30 19:24:58 +03:00

16 lines
361 B
Plaintext
Vendored

fun bar(f: Int.() -> Unit, i: Int) {
with (i) {
f<caret>()
}
}
Resolved call:
Resulting descriptor: operator fun Int.invoke(): Unit defined in kotlin.Function1
Explicit receiver kind = DISPATCH_RECEIVER
Dispatch receiver = f {[@kotlin.Extension] Function1<Int, Unit>}
Extension receiver = IntExt{fun Int.<anonymous>(): Unit defined in bar}