Fixed completion for type parameters broken recently

This commit is contained in:
Valentin Kipyatkov
2015-08-12 11:00:40 +03:00
parent b59bf6227f
commit 8104a78746
4 changed files with 24 additions and 4 deletions
@@ -0,0 +1,7 @@
package xxx
class A<T> {
fun foo(x: <caret>)
}
// ELEMENT: T
@@ -0,0 +1,7 @@
package xxx
class A<T> {
fun foo(x: T<caret>)
}
// ELEMENT: T
@@ -143,6 +143,12 @@ public class BasicCompletionHandlerTestGenerated extends AbstractBasicCompletion
doTest(fileName);
}
@TestMetadata("TypeParameter.kt")
public void testTypeParameter() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/TypeParameter.kt");
doTest(fileName);
}
@TestMetadata("idea/idea-completion/testData/handlers/basic/exclChar")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)