mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 21:18:09 +00:00
When the LHS is not a type, or the RHS is not a facet type, that is the most important error to give, so prioritize that. Only fall back to the "no .Self present" when the types are correct. This was especially confusing when the RHS _did_ contain a `.Self` but was not a facet type. Add TypeExpr::SetError, as the lack of this was the main reason for the bad error checking ordering, as setting multiple fields was awkward when an error was found.