Skip to content

Create missing overrides bug with unary operators #61127

@FMorschel

Description

@FMorschel

Repro:

abstract class MyClass {
  bool operator -();
}

class Other extends MyClass{}

Turns into:

abstract class MyClass {
  bool operator -();
}

class Other extends MyClass{
  @override
  bool operator unary-() {
    // TODO: implement unary-
    throw UnimplementedError();
  }
}

FYI @bwilkerson

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixestype-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