Generate constructors with empty bodies for annotation classes

Default parameter values of primary constructor of an annotation class
are required to generate default values of annotation properties.
This commit is contained in:
Dmitry Petrov
2018-04-03 13:01:46 +03:00
parent e74c448c0a
commit 4016254fd4
6 changed files with 143 additions and 10 deletions
@@ -39,6 +39,12 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irText/classes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("annotationClasses.kt")
public void testAnnotationClasses() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/annotationClasses.kt");
doTest(fileName);
}
@TestMetadata("argumentReorderingInDelegatingConstructorCall.kt")
public void testArgumentReorderingInDelegatingConstructorCall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt");