Skip to content

Better message for override inside extension type #59855

@FMorschel

Description

@FMorschel

While testing a code for #59820 as bellow:

class C {
  C._(this.x);
  final int x;
}

extension type E(C c) implements C {
  @override
  int get x => 0;
}

On dartpad set to main, I get:

The getter doesn't override an inherited getter.

I don't think that is true considering implements C. Can anyone confirm this?

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-uxdevexp-warningIssues with the analyzer's Warning codestype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions