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

Functions need support for inner scopes #212

Open
frame-lang opened this issue Jan 4, 2024 · 0 comments
Open

Functions need support for inner scopes #212

frame-lang opened this issue Jan 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working v0.12

Comments

@frame-lang
Copy link
Owner

frame-lang commented Jan 4, 2024

This throws an "Illegal Scope" error.

fn main {
    var a = 0
    {
        var a = 1

        print(a)
    }
}

Also

    $S1
        |a| 
            { 
                var a = 0     
                print(a)
            }

           ^
@frame-lang frame-lang self-assigned this Jan 4, 2024
@frame-lang frame-lang added bug Something isn't working v0.12 labels Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v0.12
Projects
None yet
Development

No branches or pull requests

1 participant