Files
kotlin-fork/compiler/testData/resolvedCalls/arguments/realExamples/emptyMutableList.txt
T
Svetlana Isakova 9a5abf368f Constraint incorporation
In a constraint system a new bound is incorporated:
all new constrains that can be derived from it
(and from existing ones) are added
2015-07-10 15:05:04 +03:00

24 lines
482 B
Plaintext
Vendored

class A {}
fun <T> foo(t: T) {}
fun <T> someList(): MutableList<T> = throw Exception()
fun bar() {
<caret>foo(someList())
}
Resolved call:
Candidate descriptor: fun <T> foo(t: T): Unit defined in root package
Resulting descriptor: fun <T> foo(t: ???): 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 : ??? = someList()