Skip to content

AMBIGUOUS_EXTENSION_MEMBER_ACCESS fix doesn't trigger for methods #59543

@FMorschel

Description

@FMorschel

Even after #49489 got closed when we have a method this fix is not called.

void foo(int i) {
  0.0.foo();
  0.foo();
  i.foo();
}

extension E1 on num {
  void foo() {}
}

extension E2 on num {
  void foo() {}
}

Is there a specific reason for this @bwilkerson? As far as I know, methods are also members (I mean, the error does say so). I can open a CL to fix this if this is not intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestlegacy-area-analyzerUse area-devexp instead.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