Files
carbon-lang/toolchain/check/testdata/where_expr
Dana Jansens 3a1db6633c Verify the types in an impls constraint first (#7978)
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.
2026-10-15 18:11:48 +00:00
..