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

let%component rejects functions with locally abstract types #68

Open
glennsl opened this issue Nov 30, 2019 · 0 comments
Open

let%component rejects functions with locally abstract types #68

glennsl opened this issue Nov 30, 2019 · 0 comments

Comments

@glennsl
Copy link
Collaborator

glennsl commented Nov 30, 2019

let%component make = (type a, ~someProp: a, ...) =>
  ...

is rejected with the error fun expected because type a results in a Pexp_newtype, while a Pexp_fun is expected.

And because of #53 it's not possible to use a stand-alone type annotation either.

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