Skip to content

False positive: unnecessary_statements #57964

@modulovalue

Description

@modulovalue
class A {
  void operator >(int i) => print(i);
}

void main()  {
  A() > 2; // prints 2 and Avoid using unnecessary statements.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    devexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.linter-false-positiveIssues related to lint rules that report a problem when it isn't a problem.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions