Render inferred and not inferred type parameters

while rendering a resolved call
This commit is contained in:
Svetlana Isakova
2014-04-24 20:03:38 +04:00
parent aa40fd6b56
commit a57b4f6459
6 changed files with 95 additions and 17 deletions
@@ -0,0 +1,15 @@
// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: NONE_APPLICABLE
// !MESSAGE_TYPE: HTML
package p
fun <T> foo(t: T, a: Any, l: List<T>) = 1
fun <T, R> foo(t: T, r: R, lt: MutableList<T>, lr: MutableList<R>) = 2
fun <T> foo(t: T, a: Any, lt: MutableList<T>, lr: MutableList<T>) = 3
fun use(vararg a: Any?) = a
fun test(a: Any, li: MutableList<Int>, ls: MutableList<String>) {
use(foo(11, a, li, ls))
}