[K2] Properly check if binary logical expression is constant

This commit is contained in:
Ivan Kylchik
2023-12-15 15:51:16 +01:00
committed by Space Team
parent f8e9e99d87
commit 0d127f6daf
12 changed files with 150 additions and 0 deletions
@@ -23951,12 +23951,30 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt");
}
@Test
@TestMetadata("binaryLogic.kt")
public void testBinaryLogic() throws Exception {
runTest("compiler/testData/diagnostics/tests/modifiers/const/binaryLogic.kt");
}
@Test
@TestMetadata("compare.kt")
public void testCompare() throws Exception {
runTest("compiler/testData/diagnostics/tests/modifiers/const/compare.kt");
}
@Test
@TestMetadata("complexBooleanInStringConcat_after.kt")
public void testComplexBooleanInStringConcat_after() throws Exception {
runTest("compiler/testData/diagnostics/tests/modifiers/const/complexBooleanInStringConcat_after.kt");
}
@Test
@TestMetadata("complexBooleanInStringConcat_before.kt")
public void testComplexBooleanInStringConcat_before() throws Exception {
runTest("compiler/testData/diagnostics/tests/modifiers/const/complexBooleanInStringConcat_before.kt");
}
@Test
@TestMetadata("constInteraction.kt")
public void testConstInteraction() throws Exception {
@@ -23951,12 +23951,30 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt");
}
@Test
@TestMetadata("binaryLogic.kt")
public void testBinaryLogic() throws Exception {
runTest("compiler/testData/diagnostics/tests/modifiers/const/binaryLogic.kt");
}
@Test
@TestMetadata("compare.kt")
public void testCompare() throws Exception {
runTest("compiler/testData/diagnostics/tests/modifiers/const/compare.kt");
}
@Test
@TestMetadata("complexBooleanInStringConcat_after.kt")
public void testComplexBooleanInStringConcat_after() throws Exception {
runTest("compiler/testData/diagnostics/tests/modifiers/const/complexBooleanInStringConcat_after.kt");
}
@Test
@TestMetadata("complexBooleanInStringConcat_before.kt")
public void testComplexBooleanInStringConcat_before() throws Exception {
runTest("compiler/testData/diagnostics/tests/modifiers/const/complexBooleanInStringConcat_before.kt");
}
@Test
@TestMetadata("constInteraction.kt")
public void testConstInteraction() throws Exception {