Skip to content

[analyzer] Add a fix for AMBIGUOUS_EXTENSION_MEMBER_ACCESS #49489

@asashour

Description

@asashour

https://dart-review.googlesource.com/c/sdk/+/252583


How to add an extension override for a case like:
extension E on int {
  int get a => 1;
}

extension E2 on int {
  set a(int v) {}
}

f() {
  0.a;
}

In the hints for fixing AMBIGUOUS_EXTENSION_MEMBER_ACCESS in error_fix_status, there is

For each extension, add a fix to add an extension override.
~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestdevexp-quick-fixIssues with analysis server (quick) fixeslegacy-area-analyzerUse area-devexp instead.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions