Fixed completion for type parameters broken recently
This commit is contained in:
@@ -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
|
||||
+6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user