Files
kotlin-fork/compiler/testData/resolvedCalls/arguments/functionLiterals/simpleGenericLambda.txt
T

19 lines
402 B
Plaintext

fun <T> foo(f: (T) -> String) {}
fun test() {
<caret>foo { (x: Int) -> "$x"}
}
Resolved call:
Candidate descriptor: fun <T> foo(f: (T) -> String): Unit
Resulting descriptor: fun <T> foo(f: (Int) -> String): Unit
Explicit receiver kind = NO_EXPLICIT_RECEIVER
This object = NO_RECEIVER
Receiver argument = NO_RECEIVER
Value arguments mapping:
SUCCESS f : (Int) -> String = { (x: Int) -> "$x"}