Inherit KType from KAnnotatedElement, implement KType.annotations

#KT-16795 Fixed
This commit is contained in:
Alexander Udalov
2018-08-03 18:02:23 +02:00
committed by Ilya Gorbunov
parent e4bbe2d5e2
commit ceb909d261
14 changed files with 280 additions and 7 deletions
@@ -17370,6 +17370,29 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
public void testSimpleValAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/simpleValAnnotation.kt");
}
@TestMetadata("compiler/testData/codegen/box/reflection/annotations/onTypes")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class OnTypes extends AbstractBlackBoxCodegenTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInOnTypes() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/annotations/onTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}
@TestMetadata("differentArgumentTypes.kt")
public void testDifferentArgumentTypes() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/differentArgumentTypes.kt");
}
@TestMetadata("differentPositions.kt")
public void testDifferentPositions() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/differentPositions.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/builtins")