Complete type inference for nested calls

inside non resolved invocation
This commit is contained in:
Svetlana Isakova
2014-04-21 18:05:35 +04:00
parent 2db392036c
commit 928b28e080
6 changed files with 99 additions and 8 deletions
@@ -4,7 +4,7 @@ fun f<T>(<!UNUSED_PARAMETER!>i<!>: Int, <!UNUSED_PARAMETER!>c<!>: Collection<T>)
fun f<T>(<!UNUSED_PARAMETER!>a<!>: Any, <!UNUSED_PARAMETER!>l<!>: List<T>): Collection<T> {throw Exception()}
fun test<T>(<!UNUSED_PARAMETER!>l<!>: List<T>) {
<!CANNOT_COMPLETE_RESOLVE!>f<!>(1, emptyList())
<!CANNOT_COMPLETE_RESOLVE!>f<!>(1, <!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>emptyList<!>())
}
fun emptyList<T>(): List<T> {throw Exception()}