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
@@ -0,0 +1,10 @@
package h
fun foo(i: Int) = i
fun foo(s: String) = s
fun test() {
<!NONE_APPLICABLE!>foo<!>(<!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>emptyList<!>())
}
fun emptyList<T>(): List<T> {throw Exception()}