Analyzer should trigger an error if enum comparison is used as const expression #45441
Labels
analyzer-constants
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
With Dart 2.13.0 (build 2.13.0-150.0.dev) the analyzer accepts enum comparison in const expression though enum comparisons are not yet allowed in asserts.
/cc @scheglov @bwilkerson
The text was updated successfully, but these errors were encountered: