Smart completion: added test for KT-4929 fixed by svtk

This commit is contained in:
Valentin Kipyatkov
2014-04-30 19:41:00 +04:00
parent 0920ab2c25
commit 57c41ce0b0
2 changed files with 15 additions and 0 deletions
@@ -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");
}
@TestMetadata("GenericMethodArgument.kt")
public void testGenericMethodArgument() throws Exception {
doTest("idea/testData/completion/smart/GenericMethodArgument.kt");
}
@TestMetadata("IfCondition.kt")
public void testIfCondition() throws Exception {
doTest("idea/testData/completion/smart/IfCondition.kt");