Added test for KT-4929
Smart completion should work for generic method argument #KT-4929 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
class C<T>
|
||||||
|
|
||||||
|
fun <T> foo(p1: C<T>, p2: T){}
|
||||||
|
|
||||||
|
fun bar(s: String) {
|
||||||
|
foo(C<String>(), <caret>)
|
||||||
|
}
|
||||||
|
|
||||||
|
//ELEMENT: s
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
class C<T>
|
||||||
|
|
||||||
|
fun <T> foo(p1: C<T>, p2: T){}
|
||||||
|
|
||||||
|
fun bar(s: String) {
|
||||||
|
foo(C<String>(), s)
|
||||||
|
}
|
||||||
|
|
||||||
|
//ELEMENT: s
|
||||||
+5
@@ -191,6 +191,11 @@ public class SmartCompletionHandlerTestGenerated extends AbstractSmartCompletion
|
|||||||
doTest("idea/testData/completion/handlers/smart/FunctionReference2.kt");
|
doTest("idea/testData/completion/handlers/smart/FunctionReference2.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("GenericFunction.kt")
|
||||||
|
public void testGenericFunction() throws Exception {
|
||||||
|
doTest("idea/testData/completion/handlers/smart/GenericFunction.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("JavaEnumMemberInsertsImport.kt")
|
@TestMetadata("JavaEnumMemberInsertsImport.kt")
|
||||||
public void testJavaEnumMemberInsertsImport() throws Exception {
|
public void testJavaEnumMemberInsertsImport() throws Exception {
|
||||||
doTest("idea/testData/completion/handlers/smart/JavaEnumMemberInsertsImport.kt");
|
doTest("idea/testData/completion/handlers/smart/JavaEnumMemberInsertsImport.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user