PSI2IR: generate IrEnumConstructorCalls with correct return type
Normally, the fact that is was Unit was not visible as enum constructors are lowered to normal class constructors anyway. The exception is when the arguments are reordered, causing the incorrect return type to leak into the block that holds temporary variables.
This commit is contained in:
+5
@@ -10487,6 +10487,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/enum/companionObjectInEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithReordering.kt")
|
||||
public void testConstructorWithReordering() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/enum/constructorWithReordering.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deepInnerClassInEnumEntryClass.kt")
|
||||
public void testDeepInnerClassInEnumEntryClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/enum/deepInnerClassInEnumEntryClass.kt");
|
||||
|
||||
Reference in New Issue
Block a user