While testing out queries on Boa I came across a case where looping over the values of a map with the
foreach construct produced a compile error with no message. However, when I altered the program to the equivalent
for statement (as described in the documentation here:
http://boa.cs.iastate.edu/docs/quantifiers.php) the program compiled and ran. I've simplified the programs a bit to give a more minimal test case to reproduce the error. I've attached a version that compiles and runs (noCompileError.boa) and one that fails to compile (compileError.boa) when running on the 2015 Github/Small dataset. From my understanding, these programs should behave identically.
Is this an error in how the compiler handles the foreach structure, or have I misunderstood the documentation?