Skip to content

Else condition after a newline gets skipped #108

@lakshgupta

Description

@lakshgupta

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

No one assigned

    Labels

    bugSomething isn't workingcompilerRelated with comptime or compilation problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions