Do not create primary constructor for enum entry synthetic class
The change in DescriptorSerializer is needed so that serialized protos of enum entry classes which are resolved in sources (LazyClassDescriptor) and are deserialized from binaries (EnumEntrySyntheticClassDescriptor) are the same. There are tests on incremental compilation in JS that check that the serialized proto is exactly the same after rebuild and after an incremental build. #KT-22048 Fixed
This commit is contained in:
+5
@@ -16890,6 +16890,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/reflection/constructors/constructorName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntry.kt")
|
||||
public void testEnumEntry() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/constructors/enumEntry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primaryConstructor.kt")
|
||||
public void testPrimaryConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/constructors/primaryConstructor.kt");
|
||||
|
||||
Reference in New Issue
Block a user