Files
kotlin-fork/compiler/testData/resolvedCalls/arguments/realExamples/emptyList.txt
T

23 lines
434 B
Plaintext

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