[FIR2IR] Correctly calculate offsets for implicit toLong() calls during constant evaluation
^KT-58132 Fixed
This commit is contained in:
committed by
Space Team
parent
4fe239375f
commit
903e969598
+6
@@ -5411,6 +5411,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/constants/kt9532.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("literalToLongConversion.kt")
|
||||
public void testLiteralToLongConversion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/literalToLongConversion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("long.kt")
|
||||
public void testLong() throws Exception {
|
||||
|
||||
+6
@@ -5471,6 +5471,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/constants/kt9532.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("literalToLongConversion.kt")
|
||||
public void testLiteralToLongConversion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/literalToLongConversion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("long.kt")
|
||||
public void testLong() throws Exception {
|
||||
|
||||
+6
@@ -5471,6 +5471,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/constants/kt9532.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("literalToLongConversion.kt")
|
||||
public void testLiteralToLongConversion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/literalToLongConversion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("long.kt")
|
||||
public void testLong() throws Exception {
|
||||
|
||||
+6
@@ -5471,6 +5471,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/constants/kt9532.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("literalToLongConversion.kt")
|
||||
public void testLiteralToLongConversion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/constants/literalToLongConversion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("long.kt")
|
||||
public void testLong() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user