FIR2IR: convert enums with non-primary default ctor correctly
see added test for example
This commit is contained in:
+6
@@ -12860,6 +12860,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/enum/defaultCtor/entryClassConstructorWithVarargs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noPrimaryConstructor.kt")
|
||||
public void testNoPrimaryConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/enum/defaultCtor/noPrimaryConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("secondaryConstructorWithDefaultArguments.kt")
|
||||
public void testSecondaryConstructorWithDefaultArguments() throws Exception {
|
||||
|
||||
+6
@@ -12956,6 +12956,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/enum/defaultCtor/entryClassConstructorWithVarargs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noPrimaryConstructor.kt")
|
||||
public void testNoPrimaryConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/enum/defaultCtor/noPrimaryConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("secondaryConstructorWithDefaultArguments.kt")
|
||||
public void testSecondaryConstructorWithDefaultArguments() throws Exception {
|
||||
|
||||
+5
@@ -11486,6 +11486,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/enum/defaultCtor/entryClassConstructorWithVarargs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noPrimaryConstructor.kt")
|
||||
public void testNoPrimaryConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/enum/defaultCtor/noPrimaryConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("secondaryConstructorWithDefaultArguments.kt")
|
||||
public void testSecondaryConstructorWithDefaultArguments() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/enum/defaultCtor/secondaryConstructorWithDefaultArguments.kt");
|
||||
|
||||
Reference in New Issue
Block a user