Skip to content

No type arguments in RedirectingFactoryBody #30258

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 Jul 25, 2017 · 3 comments
Closed

No type arguments in RedirectingFactoryBody #30258

scheglov opened this issue Jul 25, 2017 · 3 comments
Assignees
Labels
front-end-fasta legacy-area-front-end Legacy: Use area-dart-model instead. P2 A bug or feature request we're likely to work on

Comments

@scheglov
Copy link
Contributor

So, this code cannot be represented.

class C<T, U> {
  factory C() = D<U, T>.named;
  C._();
}
class D<T, U> extends C<U, T> {
  D.named() : super._();
}
@peter-ahe-google
Copy link
Contributor

Thank you for reporting this.

@peter-ahe-google
Copy link
Contributor

Work in progress: CL 2996063002.

The CL reifies the type arguments, but doesn't yet use that information to compute the correct type arguments when calling the constructor that is the final redirection target.

@jensjoha jensjoha added the P2 A bug or feature request we're likely to work on label Jan 10, 2018
@stereotype441
Copy link
Member

This appears to have been taken care of. As of ec9c927 we can now use RedirectingFactoryBody.typeArguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end-fasta legacy-area-front-end Legacy: Use area-dart-model instead. P2 A bug or feature request we're likely to work on
Projects
None yet
Development

No branches or pull requests

4 participants