Fix signature generation for calls to enum and inner class constructors

The synthesized arguments caused the size of default value mask off by
one when it is close to the boundary of Int.SIZE, which in turn
resulted in wrong signature at call sites.
This commit is contained in:
Ting-Yuan Huang
2019-05-20 17:52:01 -07:00
committed by max-kammerer
parent 72fdc648ff
commit 0aee2d0568
9 changed files with 90 additions and 5 deletions
@@ -8937,6 +8937,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/defaultArguments/constructor/enumWithTwoDoubleDefArgs.kt");
}
@TestMetadata("innerClass32Args.kt")
public void testInnerClass32Args() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/constructor/innerClass32Args.kt");
}
@TestMetadata("kt2852.kt")
public void testKt2852() throws Exception {
runTest("compiler/testData/codegen/box/defaultArguments/constructor/kt2852.kt");