-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unexpected change in analysis results when removing extends Object
#45959
Comments
If there is a difference in behavior, then it's a bug. I'll admit I can't remember the special cases around mixin-application and private names (#28809 mentions it, but I can't find anything in the spec). |
@eernstg For clarification on the spec. |
I can reproduce it. |
Searching the language specification and other documents (but this is from 2017, so it should be in the language specification by now), I also don't see anything about this error. But it should definitely never make a difference whether I proposed a specification of the private collision error in dart-lang/language#1626. I can see that we have tests, in particular |
It was requested as #28809 |
Yes, I did mention #28809 in the PR dart-lang/language#1626, and this comment implies, if |
…cit Object supertype. Bug: #45959 Change-Id: I064c70a1bf869fae09c2f56271a212b910d853ca Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199062 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
Given a file
a.dart
containingand another file containing
the analyzer produces the following expected diagnostic
But if the extends clause is removed:
then the diagnostic is not reported.
Is this a bug in the analyzer, or is this expected behavior?
The text was updated successfully, but these errors were encountered: