improve error messages on invalid constants #33438
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop
P2
A bug or feature request we're likely to work on
web-dart2js
Milestone
We need to provide better error message when constants are invalid.
One scenario that especially needs more data is generic instantiation that are substituted by a type variable (since type variables can be used in a constant context).
Compare the error message you get from these 2 examples:
The text was updated successfully, but these errors were encountered: