KT-9365 Code completion does not suggest annotation names at type usage

#KT-9365 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-10-21 14:27:24 +03:00
parent 197218a512
commit ab04ae4956
4 changed files with 31 additions and 10 deletions
@@ -0,0 +1,9 @@
@Target(AnnotationTarget.TYPE)
annotation class AnnType
class AnnFalse
val v: @Ann<caret> Int = 1
// EXIST: AnnType
// ABSENT: AnnFalse
@@ -753,6 +753,12 @@ public class JSBasicCompletionTestGenerated extends AbstractJSBasicCompletionTes
doTest(fileName);
}
@TestMetadata("ForType.kt")
public void testForType() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/annotations/ForType.kt");
doTest(fileName);
}
@TestMetadata("FunctionAnnotation1.kt")
public void testFunctionAnnotation1() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/annotations/FunctionAnnotation1.kt");
@@ -753,6 +753,12 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
doTest(fileName);
}
@TestMetadata("ForType.kt")
public void testForType() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/annotations/ForType.kt");
doTest(fileName);
}
@TestMetadata("FunctionAnnotation1.kt")
public void testFunctionAnnotation1() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/basic/common/annotations/FunctionAnnotation1.kt");