Files
kotlin-fork/compiler/testData/resolvedCalls/arguments/functionLiterals/simpleLambda.txt
T
Victor Petukhov ee728b6902 Use the new type inference for top-level callable reference resolution
^KT-47797 Fixed
^KT-47987 Fixed
^KT-45034 Fixed
^KT-48446 Fixed
^KT-13934 Fixed
2021-09-27 16:12:27 +03:00

19 lines
356 B
Plaintext
Vendored

fun foo(f: (Int) -> String) {}
fun test() {
<caret>foo { x -> "$x"}
}
Resolved call:
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"}