You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but fails with PPX (rescript-schema-ppx) with the following error:
We've found a bug for you!
/Users/christoph/projects/cca/repro/src/Test.res:4:6-17
2 │
3 │ let f = async () =>
4 │ if await test() {
5 │ Console.log("OK")
6 │ }
This has type: promise<bool>
But if conditions must always be of type: bool
To fix this, change the highlighted code so it evaluates to a bool.
The issue is not present yet in
eaf8e7b Fix issue with pattern matching empty list which interferes with boolean optimisations.
but is present in
c2ad39e AST: Remove Pexp_new
The text was updated successfully, but these errors were encountered:
On current master,
await
is broken when using a PPX.The following code compiles fine without PPX:
but fails with PPX (rescript-schema-ppx) with the following error:
The issue is not present yet in
but is present in
The text was updated successfully, but these errors were encountered: