Files
kotlin-fork/compiler/testData/resolvedCalls/arguments/genericCalls/uninferredParameter.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

23 lines
576 B
Plaintext
Vendored

fun <T> foo(t: T, l: MutableList<T>) {}
fun use(vararg a: Any?) = a
fun test(ls: MutableList<String>) {
use(<caret>foo(11, ls))
}
Resolved call:
Candidate descriptor: fun <T> foo(t: T, l: MutableList<T>): Unit defined in root package
Resulting descriptor: fun <T> foo(t: ???, l: MutableList<???>): Unit defined in root package
Explicit receiver kind = NO_EXPLICIT_RECEIVER
Dispatch receiver = NO_RECEIVER
Extension receiver = NO_RECEIVER
Value arguments mapping:
MATCH_MODULO_UNINFERRED_TYPES t : ??? = 11
MATCH_MODULO_UNINFERRED_TYPES l : MutableList<???> = ls