Add in-lang scope test
This commit is contained in:
parent
e8d8731922
commit
ae7d6c5359
1 changed files with 12 additions and 0 deletions
12
tests/scope.ang
Normal file
12
tests/scope.ang
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
a := 2
|
||||||
|
|
||||||
|
{
|
||||||
|
a := 3
|
||||||
|
assert(a == 3)
|
||||||
|
|
||||||
|
a = 4
|
||||||
|
assert(a == 4)
|
||||||
|
}
|
||||||
|
|
||||||
|
assert(a == 2)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue