Skip to content
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

@mustCallSuper does not error for new mixin syntax #36492

Closed
TastyPi opened this issue Apr 5, 2019 · 0 comments
Closed

@mustCallSuper does not error for new mixin syntax #36492

TastyPi opened this issue Apr 5, 2019 · 0 comments
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.

Comments

@TastyPi
Copy link

TastyPi commented Apr 5, 2019

  • Dart SDK Version (dart --version)
    2.2.1-dev.2.0+google3-v2.2.1.dev.2.0

Consider the following:

class Foo {
  @mustCallSuper
  void bar() {}
}

mixin FooMixin on Foo {
  @override
  void bar() {}
}

I would expect this to fail to build with an error complaining that FooMixin.bar does not call super.bar, instead it builds successfully with no error or warning.

@kevmoo kevmoo added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
Projects
None yet
Development

No branches or pull requests

2 participants