Skip to content

False positive: unnecessary_statements #57964

Closed
@modulovalue

Description

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

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

Metadata

Assignees

No one assigned

    Labels

    analyzer-linterIssues with the analyzer's support for the linter packagearea-analyzerUse area-analyzer for Dart analyzer issues, including the analysis server and code completion.linter-false-positivetype-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