mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 08:35:49 +01:00
Type check named constraint decls and definitions. We don't correctly error if you put a `fn` inside them. There is no support for `require` or `alias` yet, so there's nothing useful you can do with them yet. We have attempted to share code between `interface` and `constraint` as they are quite similar. First by splitting out some of handle_interface.cpp to a separate file. Second by sharing some code paths when you want a facet type from either one, as they both turn into a facet type.