Skip to content

Forwarding stubs don't tell where they forward to #31518

Closed
@scheglov

Description

@scheglov
class A<T> {
  void foo(T p) {}
}
class B<U> extends A<U> {}
class C extends B<int> {
  void bar() {
    foo(1);
  }
}

In this code foo(1) invocation is resolved to root::package:test/test.dart::C::@methods::foo, but C does not define foo, so Analyzer cannot find it when translating CanonicalName to MethodElement.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions