EA-37910 - UOE: DescriptorUtils.getSubstitution

The corresponding method reworked to be less of a hack
Tests added
This commit is contained in:
Andrey Breslav
2012-09-11 20:45:55 +04:00
parent a632d53e58
commit 91a9b6539f
7 changed files with 202 additions and 50 deletions
@@ -0,0 +1,14 @@
// FILE: foo.kt
package foo
fun f<T>(<!UNUSED_PARAMETER!>l<!>: List<T>) {}
// FILE: main.kt
import foo.*
fun f<T>(<!UNUSED_PARAMETER!>l<!>: List<T>) {}
fun test<T>(l: List<T>) {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>f(l)<!>
}
@@ -0,0 +1,7 @@
fun f1<T>(<!UNUSED_PARAMETER!>l<!>: <!UNRESOLVED_REFERENCE!>List1<!><T>): T {throw Exception()} // ERROR type here
fun f1<T>(<!UNUSED_PARAMETER!>l<!>: <!UNRESOLVED_REFERENCE!>List2<!><T>): T {throw Exception()} // ERROR type here
fun f1<T>(<!UNUSED_PARAMETER!>c<!>: Collection<T>): T{throw Exception()}
fun test<T>(l: List<T>) {
f1(l)
}