What baffles us is that, the code worked fine
playkia This is a compiler, only as good as the developers that might or might not have actually finished a full grammar/lexical implementation.
This would fall into that dark area of a lexer/parser if the grammar wasn't the driving force of the parser, like exactly or may have actually created the parser, like ANTLR etc..
I can see the AST for this in my head and it would be easy for the edge case here depending on the actual AST analyzer used. The newer compiler's parser uses a Bottom Up Rewriter for scope and types, crazy stuff, so I could see this as a bug.
This is the AIR compiler right?