Skip to content
New issue

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

blocks in blocks need to have a semicolon #395

Open
CohenArthur opened this issue Dec 2, 2021 · 0 comments · May be fixed by #626
Open

blocks in blocks need to have a semicolon #395

CohenArthur opened this issue Dec 2, 2021 · 0 comments · May be fixed by #626
Labels
bug Something isn't working parser Parser issue

Comments

@CohenArthur
Copy link
Member

The following code fails with a parsing error on the 5th line, while it should be valid

if true {
    mut b = 1;
    if true {
        b = 0;
    }

    b
} else {
    15
}

Adding a semicolon at the end of the inner if fixes the parsing but isn't really what we want:

if true {
    mut b = 1;
    if true {
        b = 0;
    };

    b
} else {
    15
}
@CohenArthur CohenArthur added bug Something isn't working parser Parser issue labels Dec 2, 2021
@CohenArthur CohenArthur linked a pull request Oct 19, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser Parser issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant