jingoro2112/wrench

Foreach is not working.

MaxTymchii opened this issue · 2 comments

Hi,

I have found that foreach code examples are not working.
E.g.:

var somArray[] = {"zero", "one", "two" };

for( var v : somArray ) {
   print(v);
}

An error occurred:

ine:5
err:21
5     }
      ^
compile error [WR_ERR_var_not_seen_before_label]

how embarrassing. The unit test (014_foreach.c) somehow does not include actual examples of "foreach" so my regression testing never caught this. will be fixed top priority.

Fixed with current checkin, oversight when I added in the "var" requirement.