Skip to content

Commit

Permalink
add another scope test
Browse files Browse the repository at this point in the history
  • Loading branch information
jackparsonss committed Jun 28, 2024
1 parent bddb03a commit 90742ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/input/statements/nested_scope.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fn main(): i32 {
let x: i32 = 5;
{
let x: i32 = 10;
println(x);
}
println(x);
return 0;
}
2 changes: 2 additions & 0 deletions tests/output/statements/nested_scope.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
10
5

0 comments on commit 90742ee

Please sign in to comment.