K2: Put boolean DFA variables under a feature flag

^KT-62547 Fixed

I also tested the commit by disabling DfaBooleanVariables in all tests
and checking what tests will fail

I didn't find anything that worked in K1, but doesn't work in K2 with
DfaBooleanVariables disabled

Related tests:
- DiagnosticCompilerTestFirTestdataTestGenerated$Resolve$Smartcasts
- LLFirPreresolvedReversedDiagnosticCompilerFirTestDataTestGenerated$Resolve$Smartcasts
- PreFirIdeSpecTestGenerated$NotLinked$Dfa
- DiagnosticCompilerTestFE10TestdataTestGenerated$Tests$SmartCasts
- FirPsiDiagnosticTestGenerated$Resolve$Expresssions.testSyntheticSmartCast
This commit is contained in:
Nikita Bobko
2024-01-31 12:25:32 +01:00
committed by Space Team
parent 118a5cee06
commit d69deb97fe
8 changed files with 170 additions and 1 deletions
@@ -32606,6 +32606,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/tests/smartCasts/dataFlowInfoForArguments.kt");
}
@Test
@TestMetadata("disableDfaBooleanVariables.kt")
public void testDisableDfaBooleanVariables() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/disableDfaBooleanVariables.kt");
}
@Test
@TestMetadata("doubleLambdaArgument.kt")
public void testDoubleLambdaArgument() throws Exception {
@@ -32732,6 +32732,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/tests/smartCasts/dataFlowInfoForArguments.kt");
}
@Test
@TestMetadata("disableDfaBooleanVariables.kt")
public void testDisableDfaBooleanVariables() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/disableDfaBooleanVariables.kt");
}
@Test
@TestMetadata("doubleLambdaArgument.kt")
public void testDoubleLambdaArgument() throws Exception {