scala/scala — pull request #1801 by paulp (2012-12-22 18:45:25+00:00)
Title: SI-6829, NPE during erroneous compilation.

Have to intercept trees which have a null type due to errors
before they leave the warm confines of 'def typed' because from
that point everything assumes tree.tpe != null.