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
Else
The else condition gets skipped in case it's written after a newline.
else
Either the code executes the else condition or fails with an error.
The else condition does not get executed.
Here is a small program to reproduce the issue:
fn main() { let a:bool = false if a == true { outln("True") } else { outln("False") } }
The text was updated successfully, but these errors were encountered:
This issue is fixed with commit f4b18b0, thanks for your contribution.
f4b18b0
Sorry, something went wrong.
No branches or pull requests
Description
The
else
condition gets skipped in case it's written after a newline.Expected behavior
Either the code executes the else condition or fails with an error.
Current behavior
The
else
condition does not get executed.Additional information
Here is a small program to reproduce the issue:
The text was updated successfully, but these errors were encountered: