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
need super-mixins flag in Fasta to alter warnings/errors around super calls #31994
Comments
This code should only be accepted with the "super-mixins" flag enabled. In that case, it should be accepted and an invalid super-invocation is a dynamic error (like in Dart 1). Without that flag, any method that callas a super-method must have an actual implementation of said method in its superclass. |
Then we need super-mixins flag in the front-end |
Please see step zero in the document linked from #31542 for more details on plan agreed upon by the language team. |
Update on this: I have discussed this with @askeksa-google - instead of setting up new flags and plumbing them through FE we are just going to just suppress these errors in pkg/vm integration layer. If there are no objections to it - I will implement this tomorrow. |
This is already supported:
|
Keeping this open to track the implementation |
When compiling Flutter we get a slew of errors like this:
The error comes from this code:
as you can see the error is valid because Dart language conflates the notion of a class and a mixin together. You can also see that the error is suppressed in the analyzer.
To make Flutter builds error free we need a way to perform a similar suppression in CFE, while retaining correctness.
/cc @kmillikin @peter-ahe-google @leafpetersen @lrhn
The text was updated successfully, but these errors were encountered: