Improve message when using Dart 3.0 features w/o Dart 3.0 enabled #52324
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
8000
devexp-ux
devexp-warning
Issues with the analyzer's Warning codes
model-error-recovery
Error recovery in analyzer/CFE.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
In a project with 2.19 as an SDK upper bound, code that tries to use Dart 3.0 features like this:
Produces the following diagnostics:
I expect what folks really want to see is one message like:
(Obviously it should be better but this is the idea.)
The text was updated successfully, but these errors were encountered: