Hi, I've made some of these fail a little less spectacularly now. Implementing a better error message cleanly either needs some refactoring of variable declaration handling code (so when we're parsing a variable we know if we're parsing a declaration), or is something we should do in an analysis stage once we already have the syntax tree (but we've not got the infrastructure for that yet).
Thanks, Jonathan