Files
kotlin-fork/compiler/testData/resolvedCalls/arguments/functionLiterals/simpleLambda.txt
T
2020-02-13 11:15:58 +03:00

20 lines
436 B
Plaintext
Vendored

fun foo(f: (Int) -> String) {}
fun test() {
<caret>foo { x -> "$x"}
}
Resolved call:
Candidate descriptor: fun foo(f: (Int) -> String): Unit defined in root package
Resulting descriptor: fun foo(f: (Int) -> String): Unit defined in root package
Explicit receiver kind = NO_EXPLICIT_RECEIVER
Dispatch receiver = NO_RECEIVER
Extension receiver = NO_RECEIVER
Value arguments mapping:
SUCCESS f : (Int) -> String = { x -> "$x"}