Skip to content

DDC does not understand the syntax for generic function types #30375

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
jmesserly opened this issue Aug 9, 2017 · 3 comments
Closed

DDC does not understand the syntax for generic function types #30375

jmesserly opened this issue Aug 9, 2017 · 3 comments

Comments

@jmesserly
Copy link

see function_type50_test, testF4:

Expect.isTrue(m4 is List<A> Function<A>(List<Function> x));

Judging by DDC's output, it looks like Analyzer creates a synthetic typedef of some sort for List<A> Function<A>(List<Function> x) ... however, when DDC generates code for that, the typedef is backed by a non-generic function type.

DDC does support generic function types if they're declared with named typedefs, so my guess is it's something a bit quirky in the element model, that we aren't handling correctly in _emitType

@jmesserly
Copy link
Author

function_type58_test appears to be failing for the same reason

@matanlurey
Copy link
Contributor

Related to #30758?

@jmesserly
Copy link
Author

this has been fixed a while ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants