Skip to content

[analyzer] Confusing suggestion for overriding == #56336

Closed
@incendial

Description

@incendial

Hi,

Consider the following example:

abstract class Assist {
  const Assist();

  bool operator >(Object other) => false;
}

class CommandAssist extends Assist {
  final CommandDefinition command;

  @ov // <-- typing override
  
  const CommandAssist(this.command);
}

when typing @override, the equality operator is not displayed properly in the list of suggestions and it's not really clear what is being suggested:

Screenshot 2024-07-29 at 20 22 47

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work ondevexp-completionIssues with the analysis server's code completion featurelegacy-area-analyzerUse area-devexp instead.triage-automationSee https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.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