We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Regarding https://rescript-lang.org/docs/manual/latest/control-flow#for-loops It appears that the body of a for loop must evaluate to unit. This code:
for
unit
let n: array<int> = [] for i in 1 to 3 { Js.Array2.push(n, i) }
produces this error (the fix is to pipe to ignore):
ignore
[E] Line 3, column 2: This has type: int Somewhere wanted: unit
Is this worth documenting?
The text was updated successfully, but these errors were encountered:
Yeah that might be worth to be added
Sorry, something went wrong.
No branches or pull requests
Regarding https://rescript-lang.org/docs/manual/latest/control-flow#for-loops
It appears that the body of a
for
loop must evaluate tounit
. This code:produces this error (the fix is to pipe to
ignore
):Is this worth documenting?
The text was updated successfully, but these errors were encountered: