Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

No way to call uncurried function with unit. #384

Closed
rickyvetter opened this issue Apr 12, 2021 · 3 comments
Closed

No way to call uncurried function with unit. #384

rickyvetter opened this issue Apr 12, 2021 · 3 comments

Comments

@rickyvetter
Copy link

If you try to add the unit to this code it gets formatted away:

Js.Promise.make((~resolve, ~reject as _) => resolve(.))

@bloodyowl
Copy link
Contributor

Workaround: resolve(. ()->ignore)

#139

@bobzhang
Copy link
Member

we will land #139 on version 10

@ryyppy
Copy link
Member

ryyppy commented May 2, 2022

Change has been merged, so I will close this!

@ryyppy ryyppy closed this as completed May 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants