Smart completion: added test for KT-4929 fixed by svtk
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
class C<T>
|
||||||
|
|
||||||
|
fun <T> foo(p1: C<T>, p2: T){}
|
||||||
|
|
||||||
|
fun bar(s: String, o: Any) {
|
||||||
|
foo(C<String>(), <caret>)
|
||||||
|
}
|
||||||
|
|
||||||
|
//EXIST: s
|
||||||
|
//ABSENT: o
|
||||||
@@ -191,6 +191,11 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
|
|||||||
doTest("idea/testData/completion/smart/FunctionReference9.kt");
|
doTest("idea/testData/completion/smart/FunctionReference9.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("GenericMethodArgument.kt")
|
||||||
|
public void testGenericMethodArgument() throws Exception {
|
||||||
|
doTest("idea/testData/completion/smart/GenericMethodArgument.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("IfCondition.kt")
|
@TestMetadata("IfCondition.kt")
|
||||||
public void testIfCondition() throws Exception {
|
public void testIfCondition() throws Exception {
|
||||||
doTest("idea/testData/completion/smart/IfCondition.kt");
|
doTest("idea/testData/completion/smart/IfCondition.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user