Files
kotlin-fork/compiler/testData/resolvedCalls/resolve/mostSpecificWithLambda.txt
T
Svetlana Isakova fb4c256d08 Added tests for choosing 'most specific' resolution candidate
Fixed test (while resolve with library on android): 'run' resolves to library function
2014-07-30 17:07:10 +04:00

20 lines
370 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
Resulting descriptor: fun <T> bar(f: () -> Unit): Unit
Explicit receiver kind = NO_EXPLICIT_RECEIVER
This object = NO_RECEIVER
Receiver argument = NO_RECEIVER
Value arguments mapping:
SUCCESS f : () -> Unit = { }