mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 17:00:25 +01:00
This disallows building a facet type that contains another facet type with non-extend constraints in it. Which in turn prevents the possibility of introducing a different `.Self` into a facet type. Eval can still insert a facet type with non-extend constraints, as we only prevent it for `where` being written into the facet type. There is a TODO in handle_where.cpp for this and some tests in toolchain/check/testdata/facet/nested_facet_types_from_eval.carbon