Files
kotlin-fork/compiler/testData/resolvedCalls/resolve/mostSpecificWithLambda.txt
T
Alexander Udalov 3a8ad45dec Append newline to EOF for .txt test data files
Reverts and fixes 102f0d3
2014-10-21 03:18:27 +04:00

21 lines
426 B
Plaintext

fun foo() {
<caret>bar { }
}
fun bar(a: Any) = a
fun <T> bar(f: () -> T): T = f()
Resolved call:
Candidate descriptor: fun <T> bar(f: () -> T): T defined in root package
Resulting descriptor: fun <T> bar(f: () -> Unit): Unit defined in root package
Explicit receiver kind = NO_EXPLICIT_RECEIVER
Dispatch receiver = NO_RECEIVER
Extension receiver = NO_RECEIVER
Value arguments mapping:
SUCCESS f : () -> Unit = { }