Fix enum entry class delegating constructor call generation
When the enum entry requires a specific class, its constructor should invoke proper supertype constructor (from the corresponding enum class). Corresponding resolved call should be passed from the front-end in CONSTRUCTOR_RESOLVED_DELEGATION_CALL slice. In case of enum entries without explicit supertype initializer, this information was missing.
This commit is contained in:
@@ -8473,6 +8473,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("entryClassConstructorWithDefaultArguments.kt")
|
||||
public void testEntryClassConstructorWithDefaultArguments() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/enum/defaultCtor/entryClassConstructorWithDefaultArguments.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("entryClassConstructorWithVarargs.kt")
|
||||
public void testEntryClassConstructorWithVarargs() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/enum/defaultCtor/entryClassConstructorWithVarargs.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("secondaryConstructorWithDefaultArguments.kt")
|
||||
public void testSecondaryConstructorWithDefaultArguments() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithDefaultArguments.kt");
|
||||
|
||||
Reference in New Issue
Block a user