stage2: more resilient error handling

* If more than one error is reported for the same Decl, the first error
   message is kept and the second one discarded.
 * Prevent functions from being sent to codegen backends if there were
   any errors resolving any of their parameter types or return type.
91eb1af917Andrew Kelley committed on 4/3/2022, 2:18:41 AMparent3432e66
2 files changedLine totals unavailable