[K2] Properly evaluate complex boolean constants
Some boolean expressions could be transformed into `IrWhen` node. To understand that this node is actually a boolean expression, we need to analyze its origin. #KT-62683
This commit is contained in:
+6
@@ -21699,6 +21699,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/charOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("complexBooleanConstant.kt")
|
||||
public void testComplexBooleanConstant() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/complexBooleanConstant.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doubleOperations.kt")
|
||||
public void testDoubleOperations() throws Exception {
|
||||
|
||||
Generated
+6
@@ -21699,6 +21699,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/charOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("complexBooleanConstant.kt")
|
||||
public void testComplexBooleanConstant() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/complexBooleanConstant.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doubleOperations.kt")
|
||||
public void testDoubleOperations() throws Exception {
|
||||
|
||||
+6
@@ -21699,6 +21699,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/charOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("complexBooleanConstant.kt")
|
||||
public void testComplexBooleanConstant() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/complexBooleanConstant.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doubleOperations.kt")
|
||||
public void testDoubleOperations() throws Exception {
|
||||
|
||||
+6
@@ -21699,6 +21699,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/charOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("complexBooleanConstant.kt")
|
||||
public void testComplexBooleanConstant() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/complexBooleanConstant.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doubleOperations.kt")
|
||||
public void testDoubleOperations() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user