-
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
Analyzer checks overriding between superclass and superinterface incorrectly. #36432
Comments
This is working as intended. You need to say Alternatively, if you add the declaration But it sounds like the front end is too forgiving ... testing ... no: I get an error for line 6 from
|
I tested this with 2.2.1-dev-1.1 and dart passed for me. |
I get the same response (error on line 6) from But I'm not quite sure what you mean by 'it passed for me'. Do you mean that you have a version of |
Sorry for inaccuracy! Dart report compile error on the line 6 too, so if it's expected this bug can be closed. |
Yep, that error is expected. Thanks! |
@eernstg – is there a bug here? For whom? Otherwise, please close! 😄 |
DART version: 2.2.1-dev-1.1
OS: Windows 10 64 bit
This bug is similar with #34392 which was fixed some time ago.
Here is a source code example:
Analyzer throws a compile error for the line #6 and passes with the line #7:
Seems like it should pass in both cases.
Please note that #34392 source example passes with the recent dart versions.
If I run my test with dart, it passes as well.
The text was updated successfully, but these errors were encountered: