Files
kotlin-fork/compiler/testData/resolvedCalls/invoke/bothReceivers.txt
T
Alexander Udalov 7449ad2763 Rename Extension annotation to ExtensionFunctionType
The old one is kept temporarily and will be removed later
2015-12-21 20:33:32 +03:00

14 lines
296 B
Plaintext
Vendored

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