compiler: Fix empty method bug and add tests
by
Andrew Childs
9 years 9 months
compiler: Fix empty method bug and add tests
The compiler assumed that method ids started at 1. Now they start at
0. A better approach would be to record the id of the first block, but
this is a smaller fix. Added minimal tests that try to cover this
change.