EA-37910 - UOE: DescriptorUtils.getSubstitution
The corresponding method reworked to be less of a hack Tests added
This commit is contained in:
+14
@@ -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)<!>
|
||||
}
|
||||
+7
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user