-
Notifications
You must be signed in to change notification settings - Fork 1.7k
enhanced enums support for annotate_overrides
#58585
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
devexp-linter
Issues with the analyzer's support for the linter package
legacy-area-analyzer
Use area-devexp instead.
linter-new-language-feature
Comments
31 tasks
dart-archive/linter#3186 adds tests but with the latest published analyzer the
@scheglov, FWIW, this fails for different reasons against tip of tree:
Here's the test source: test_ok() async {
await assertNoDiagnostics(r'''
enum A {
a,b,c;
@override
int get hashCode => 0;
@override
String toString() => '';
}
''');
} |
New test source: class O {
int get x => 0;
}
enum A implements O {
a,b,c;
@override
int get x => 0;
@override
String toString() => '';
} Error:
@scheglov: does this seem right to you? (I was expecting the overrides to be valid.) |
RE: |
copybara-service bot
referenced
this issue
Feb 24, 2022
Bug: https://github.com/dart-lang/linter/issues/3093 Change-Id: Ie59b366250db069f40236491eb705e291b7bb3fe Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/234221 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Phil Quitslund <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
devexp-linter
Issues with the analyzer's support for the linter package
legacy-area-analyzer
Use area-devexp instead.
linter-new-language-feature
No description provided.
The text was updated successfully, but these errors were encountered: