anole-lang / anole

The Anole Programming Language
MIT License
17 stars 1 forks source link

[BUG] No block-scope makes bug when using nested foreach-stmt #40

Closed mu001999 closed 3 years ago

mu001999 commented 3 years ago

For example:

foreach [1, 2] as i, foreach [2, 3] as j, { print(i); print(j); }();

The output is 1213 instead of 12132223.