Foreach is not working.
MaxTymchii opened this issue · 2 comments
MaxTymchii commented
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]
jingoro2112 commented
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.
jingoro2112 commented
Fixed with current checkin, oversight when I added in the "var" requirement.