Skip to content
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

Return type of calls returning a lambda #2433

Closed
alfonsogarciacaro opened this issue Apr 13, 2021 · 0 comments
Closed

Return type of calls returning a lambda #2433

alfonsogarciacaro opened this issue Apr 13, 2021 · 0 comments

Comments

@alfonsogarciacaro
Copy link
Member

This commit fixed currying when applicating lambdas to the return value of a call (see test "Aliasing a function wrapping a multi-arity function in point-free style #2045"), however it broke the plugin in Fable.SvelteStore to generate declarations, see fable-compiler/Fable.Store#9 (comment)

This happens because the uncurrying needs to use the non-filled generic type, but for things like printing the .d.ts we need the actual type with generic args filled. Ideally we should have both the actual type of the lambda arguments and the expected generics as we have for the calls, but to avoid breaking the AST for now we're going to use the generic version only when the call returns a lambda.

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