> So is there a way to detect that an error happened at compiler parsing phase 
> and catch it?

You have [compiles()](https://nim-lang.org/docs/system.html#compiles%2Cuntyped) 
for that. Though usually we never write tests like this...

Reply via email to