-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Analyzer recovery: unhelpful errors caused by extra < in type parameters #43141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
analyzer-recovery
legacy-area-front-end
Legacy: Use area-dart-model instead.
model-error-recovery
Error recovery in analyzer/CFE.
P3
A lower priority bug or feature request
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
analyzer-recovery
legacy-area-front-end
Legacy: Use area-dart-model instead.
model-error-recovery
Error recovery in analyzer/CFE.
P3
A lower priority bug or feature request
You can’t perform that action at this time.
The error messages generated by this code with an extra < are not very helpful, and appear on lines
much earlier than the error occurs at. The analyzer thinks a field called "Map" is being added to the class.
And the error messages for the error location don't indicate anything about type parameters or <.
Could recovery do a better job by not incorrectly adding this field?
These messages appear on Dart stable 2.9 and dev 2.10.0-45.0.dev
The code is:
The error messages are:
The text was updated successfully, but these errors were encountered: