-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Analyzer] Missing static error on an indirect implementation of a base class. #52160
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
Comments
Duplicate of #52056 ? |
Kallen's on vacation this week so given that this is a blocker for stable, we probably shouldn't wait for her return 😃 |
cc @goderbauer @zanderso as a heads up - this is a missing static error in both CFE and analyzer, there's a chance that we will need to do some fixup in flutter to roll this. |
cc @jason-simmons the engine sheriff |
…lementing 'base' via 'extends'. Bug: #52160 Change-Id: I47a72021a002663d04fd8ea14c11a012917e8a8c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/298320 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
Confirmed that this fixes the pending tests here: https://dart-review.googlesource.com/c/sdk/+/298040 . |
…for implementing 'base' via 'extends'. Bug: #52160 Change-Id: I47a72021a002663d04fd8ea14c11a012917e8a8c Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/298320 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/298201 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
The static analysis section of the class modifiers spec specifies that the error around implementing a base class from another library extends through the transitive closure of the super-declarations:
The analyzer does not seem to report this error, the following code produces no error when tested at current HEAD:
We seem to currently have no test coverage for this error (and the related errors for final, and for the mixin and mixin class cases).
@munificent is working on adding tests, @dart-lang/language-team please help expedite reviews and landing here.
cc @kallentu @srawlins @bwilkerson @scheglov @itsjustkevin
Tentatively marking this as a blocker for stable, let's plan on a cherry pick if at all possible. If the fix looks like it will be hard to land in that time frame, we can discuss alternatives and possibly aim for the first patch release.
The text was updated successfully, but these errors were encountered: