Class is an annotation iff it is annotated by kotlin.annotation.annotation, or is kotlin.annotation.annotation itself.

JetClassOrObject.isAnnotation() is no more in use during resolve. Additional test.
This commit is contained in:
Mikhail Glukhikh
2015-07-28 18:20:19 +03:00
parent d71217eb5c
commit a072550931
12 changed files with 151 additions and 39 deletions
@@ -669,6 +669,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("AnnotationIdentifier.kt")
public void testAnnotationIdentifier() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/AnnotationIdentifier.kt");
doTest(fileName);
}
@TestMetadata("annotationInheritance.kt")
public void testAnnotationInheritance() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/annotationInheritance.kt");