Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
scheglov opened this issue Dec 1, 2017 · 1 comment
Closed

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

scheglov opened this issue Dec 1, 2017 · 1 comment
Assignees
Labels

Comments

@scheglov
Copy link
Contributor

scheglov commented Dec 1, 2017

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.

@scheglov
Copy link
Contributor Author

scheglov commented Dec 1, 2017

Paul wrote 10x better description of the problem.
So, I'm closing this one.

@scheglov scheglov closed this as completed Dec 1, 2017
@kmillikin kmillikin added legacy-area-front-end Legacy: Use area-dart-model instead. front-end-kernel and removed legacy-area-front-end Legacy: Use area-dart-model instead. labels Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants