Files
kotlin-fork/compiler/testData/resolvedCalls/resolve/mostSpecificUninferredParam.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

22 lines
468 B
Plaintext

fun <T> emptyList(): List<T> = throw Exception()
fun <T> doSmth(l: List<T>) {}
fun doSmth(a: Any) {}
fun bar() {
<caret>doSmth(emptyList())
}
Resolved call:
Candidate descriptor: fun <T> doSmth(l: List<T>): Unit
Resulting descriptor: fun <T> doSmth(l: List<???>): Unit
Explicit receiver kind = NO_EXPLICIT_RECEIVER
This object = NO_RECEIVER
Receiver argument = NO_RECEIVER
Value arguments mapping:
MATCH_MODULO_UNINFERRED_TYPES l : List<???> = emptyList()