Generate private constructors for Enums

#KT-2680 Fixed
  #KT-16867 Fixed
This commit is contained in:
Mikhael Bogdanov
2018-09-18 10:32:21 +02:00
parent c753a98d02
commit 38652372ce
11 changed files with 99 additions and 14 deletions
@@ -9598,6 +9598,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/enum"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}
@TestMetadata("annotatedParameter.kt")
public void testAnnotatedParameter() throws Exception {
runTest("compiler/testData/codegen/box/enum/annotatedParameter.kt");
}
@TestMetadata("annotatedParameter2.kt")
public void testAnnotatedParameter2() throws Exception {
runTest("compiler/testData/codegen/box/enum/annotatedParameter2.kt");
}
@TestMetadata("asReturnExpression.kt")
public void testAsReturnExpression() throws Exception {
runTest("compiler/testData/codegen/box/enum/asReturnExpression.kt");
@@ -9598,6 +9598,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/enum"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}
@TestMetadata("annotatedParameter.kt")
public void testAnnotatedParameter() throws Exception {
runTest("compiler/testData/codegen/box/enum/annotatedParameter.kt");
}
@TestMetadata("annotatedParameter2.kt")
public void testAnnotatedParameter2() throws Exception {
runTest("compiler/testData/codegen/box/enum/annotatedParameter2.kt");
}
@TestMetadata("asReturnExpression.kt")
public void testAsReturnExpression() throws Exception {
runTest("compiler/testData/codegen/box/enum/asReturnExpression.kt");
@@ -462,6 +462,11 @@ public class WriteFlagsTestGenerated extends AbstractWriteFlagsTest {
runTest("compiler/testData/writeFlags/function/constructors/classObject.kt");
}
@TestMetadata("enum.kt")
public void testEnum() throws Exception {
runTest("compiler/testData/writeFlags/function/constructors/enum.kt");
}
@TestMetadata("objectInClass.kt")
public void testObjectInClass() throws Exception {
runTest("compiler/testData/writeFlags/function/constructors/objectInClass.kt");
@@ -9598,6 +9598,16 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/enum"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM_IR, true);
}
@TestMetadata("annotatedParameter.kt")
public void testAnnotatedParameter() throws Exception {
runTest("compiler/testData/codegen/box/enum/annotatedParameter.kt");
}
@TestMetadata("annotatedParameter2.kt")
public void testAnnotatedParameter2() throws Exception {
runTest("compiler/testData/codegen/box/enum/annotatedParameter2.kt");
}
@TestMetadata("asReturnExpression.kt")
public void testAsReturnExpression() throws Exception {
runTest("compiler/testData/codegen/box/enum/asReturnExpression.kt");