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

Variable Defined in Block Scope Accessible Outside Its Scope #80

Open
SIGMazer opened this issue Jan 18, 2025 · 0 comments
Open

Variable Defined in Block Scope Accessible Outside Its Scope #80

SIGMazer opened this issue Jan 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@SIGMazer
Copy link
Contributor

SIGMazer commented Jan 18, 2025

Description

When a variable is declared within the scope of a block (e.g., inside a loop or conditional block), it should not be accessible outside that block. However, the interpreter currently allows access to the variable even after the scope has ended.

Steps to Reproduce

skibidi main {  
    flex (rizz i = 0; i < 6; i = i + 1) {  
        yapping("Skibidi toilet");  
        rizz a = 10;  
    }  
    yapping("%d", a);  
    bussin 0;  
}  
@SIGMazer SIGMazer added bug Something isn't working help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant