Files
kotlin-fork/compiler/testData/resolvedCalls/arguments/functionLiterals/simpleGenericLambda.txt
T
Svetlana Isakova 29ab166e1b Refactoring: AbstractResolvedCallsTest
Render resolved call to a separate file
2014-07-08 14:48:19 +04:00

18 lines
291 B
Plaintext

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