[K2] Properly check if binary logical expression is constant
This commit is contained in:
+18
@@ -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 {
|
||||
|
||||
+18
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user