Skip to content

pkg/meta: @mustCallSuper does not understand operators? #27896

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

Closed
matanlurey opened this issue Nov 25, 2016 · 1 comment
Closed

pkg/meta: @mustCallSuper does not understand operators? #27896

matanlurey opened this issue Nov 25, 2016 · 1 comment
Assignees
Labels
devexp-warning Issues with the analyzer's Warning codes legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@matanlurey
Copy link
Contributor

I'd expect this to be warning free:

import 'package:meta/meta.dart';

class A {
  @mustCallSuper
  operator==(Object o) => o is A;
}

class B extends A {
  @override
  operator==(Object o) => o is B && super == o;
}

But it's not.

(The error message is also wrong, it should say does not invoke, but it says does invoke)

@floitschG floitschG added the legacy-area-analyzer Use area-devexp instead. label Nov 27, 2016
@bwilkerson bwilkerson added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Nov 28, 2016
@natebosch
Copy link
Member

The "does" -> "does not" has been fixed. The existed of the warning still exists.

@srawlins srawlins added the devexp-warning Issues with the analyzer's Warning codes label Apr 8, 2020
@srawlins srawlins self-assigned this Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-warning Issues with the analyzer's Warning codes legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

5 participants