ceylon/ceylon-spec — Issue #166: Typechecker error messages get cleared before backend can use them
Author: chochos
Created: 2012-02-07 23:46:11+00:00
State: open

When compiling, the typechecker prints error messages from the sources it processes, but when the backend (ceylon-js for example) gets the AST, the list of error/warning messages from the typechecker is empty.

I suspect the `visit(Tree.CompilationUnit)` method is missing something but I don't know what. It reinitializes `foundErrors` twice. When the backend is called, `typechecker.getErrors()` returns the correct number of errors but `getMessages()` returns an empty list.