Deprecate simplification of complex boolean constant expressions in whens and loops
^KT-39883 In Progress
This commit is contained in:
committed by
teamcityserver
parent
8a2e0cedf9
commit
05883afc0a
+24
@@ -4973,6 +4973,18 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/localObjectInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("loopWithNonTrivialBooleanConst_error.kt")
|
||||
public void testLoopWithNonTrivialBooleanConst_error() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/loopWithNonTrivialBooleanConst_error.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("loopWithNonTrivialBooleanConst_warning.kt")
|
||||
public void testLoopWithNonTrivialBooleanConst_warning() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/loopWithNonTrivialBooleanConst_warning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mainWithWarningOnUnusedParam.kt")
|
||||
public void testMainWithWarningOnUnusedParam() throws Exception {
|
||||
@@ -30965,6 +30977,18 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/when/ExhaustiveBooleanNullable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("exhaustiveBooleanWhenWithUntrivialConst_error.kt")
|
||||
public void testExhaustiveBooleanWhenWithUntrivialConst_error() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/exhaustiveBooleanWhenWithUntrivialConst_error.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("exhaustiveBooleanWhenWithUntrivialConst_warning.kt")
|
||||
public void testExhaustiveBooleanWhenWithUntrivialConst_warning() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/exhaustiveBooleanWhenWithUntrivialConst_warning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ExhaustiveBreakContinue.kt")
|
||||
public void testExhaustiveBreakContinue() throws Exception {
|
||||
|
||||
+24
@@ -4973,6 +4973,18 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/localObjectInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("loopWithNonTrivialBooleanConst_error.kt")
|
||||
public void testLoopWithNonTrivialBooleanConst_error() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/loopWithNonTrivialBooleanConst_error.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("loopWithNonTrivialBooleanConst_warning.kt")
|
||||
public void testLoopWithNonTrivialBooleanConst_warning() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/loopWithNonTrivialBooleanConst_warning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mainWithWarningOnUnusedParam.kt")
|
||||
public void testMainWithWarningOnUnusedParam() throws Exception {
|
||||
@@ -30965,6 +30977,18 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/when/ExhaustiveBooleanNullable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("exhaustiveBooleanWhenWithUntrivialConst_error.kt")
|
||||
public void testExhaustiveBooleanWhenWithUntrivialConst_error() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/exhaustiveBooleanWhenWithUntrivialConst_error.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("exhaustiveBooleanWhenWithUntrivialConst_warning.kt")
|
||||
public void testExhaustiveBooleanWhenWithUntrivialConst_warning() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/exhaustiveBooleanWhenWithUntrivialConst_warning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ExhaustiveBreakContinue.kt")
|
||||
public void testExhaustiveBreakContinue() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user