JVM IR: Do not create accessors for enum entry constructors

This commit is contained in:
Steven Schäfer
2020-07-17 16:16:07 +02:00
committed by Alexander Udalov
parent 71730696b2
commit d62a6a2631
4 changed files with 30 additions and 1 deletions
@@ -1870,6 +1870,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("constructorAccessors.kt")
public void testConstructorAccessors() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/enum/constructorAccessors.kt");
}
@TestMetadata("enumCheckcasts.kt")
public void testEnumCheckcasts() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/enum/enumCheckcasts.kt");