I had a very odd problem in that my program stopped running, and by stopped running I mean that the very first println in the function did not execute. However poking around in the code revealed that it was only one function that was not executing.
After some amount of cut-paste i finally tracked the problem down to:
function main() ... for i=1:n ... end end ... end main()
An extraneous end. I figured that was the problem but it took me a bit to track down.
Apparently the extra end causes everything after it to be ignored (?), but there is no compilation error. It seems like the compiler should report an “unmatched end”.
Is this worthy of a bug report ?