This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
[10.1] Redefined async functions don't support named arguments #707
Closed
Description
I'm migrating my codebase to 10.1 and I have functions called async
(some external
, some let
) that were defined long before ReScript considered adding async/await.
Is this supposed to be allowed now that async
is a keyword? Simple functions work, but functions with named arguments throw a syntax error after the function call such as Did you forget a => here?
when I attempt to call them:
let async = (~a, b) => a+b
let _ = async(~a=1, 1)
I'm happy to say redefining async
shouldn't be allowed, but then let async
and external async
should trigger an error rather than at the call site.
Metadata
Metadata
Assignees
Labels
No labels