Remove the fallback exhaustiveness algorithm #51518
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
P3
A lower priority bug or feature request
There are new test failures on Enable the fallback exhaustiveness algorithm (with improvements)..
This is happening because the fallback exhaustiveness algorithm is a rough (but sound) under-approximation of how we want soundness to behave in the long run. That is, if a switch statement or switch expression is not exhaustive, the fallback exhaustiveness algorithm will reliably classify it as non-exhaustive (and generate the appropriate error), but it also generates errors for a lot of switch statements and switch expressions that actually are exhaustive. Also, it doesn't detect unreachable switch cases.
The tests
are failing on configurations
CC @johnniwinther
The text was updated successfully, but these errors were encountered: