Extraction Engine: Support type parameter references
#KT-7260 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// SUGGESTED_NAMES: i, getA
|
||||
fun foo<U>() = 1
|
||||
|
||||
fun test<T>() {
|
||||
val a = <selection>foo<T>()</selection>
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// SUGGESTED_NAMES: i, getA
|
||||
fun foo<U>() = 1
|
||||
|
||||
fun test<T>() {
|
||||
val a = i<T>()
|
||||
}
|
||||
|
||||
private fun <T> i() = foo<T>()
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// SUGGESTED_NAMES: i, getA
|
||||
// PARAM_DESCRIPTOR: value-parameter val t: T defined in test
|
||||
// PARAM_TYPES: T
|
||||
fun foo<U>(u: U) = 1
|
||||
|
||||
fun test<T>(t: T) {
|
||||
val a = <selection>foo<T>(t)</selection>
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// SUGGESTED_NAMES: i, getA
|
||||
// PARAM_DESCRIPTOR: value-parameter val t: T defined in test
|
||||
// PARAM_TYPES: T
|
||||
fun foo<U>(u: U) = 1
|
||||
|
||||
fun test<T>(t: T) {
|
||||
val a = i(t)
|
||||
}
|
||||
|
||||
private fun <T> i(t: T) = foo<T>(t)
|
||||
Reference in New Issue
Block a user