Skip to content

proxy: support super traits #6

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

Open
tjhu opened this issue Jun 1, 2021 · 0 comments
Open

proxy: support super traits #6

tjhu opened this issue Jun 1, 2021 · 0 comments

Comments

@tjhu
Copy link
Contributor

tjhu commented Jun 1, 2021

Super trait was not supported because it requires type resolution, which we didn't have. Now we have a working type resolution, we should implement the support for super trait.

To support this, the ngc needs to generate the following in the proxy given trait Trait: SuperTrait:

impl SuperTrait for TraitProxy {
  fn method(&self) -> {
    // Proxied called ....
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant