-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
bugSomething isn't workingSomething isn't workingcompilerRelated with comptime or compilation problemsRelated with comptime or compilation problems
Description
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:
fn main() {
let a:bool = false
if a == true {
outln("True")
}
else {
outln("False")
}
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompilerRelated with comptime or compilation problemsRelated with comptime or compilation problems