AST: Checking of pack requirements

This commit is contained in:
Slava Pestov
2023-03-17 17:48:35 -04:00
parent d27231a91c
commit b6b51cf4cf
7 changed files with 146 additions and 28 deletions

View File

@@ -2272,12 +2272,14 @@ NOTE(candidate_types_equal_requirement,none,
(Type, Type, Type, Type))
NOTE(candidate_types_same_shape_requirement,none,
"candidate requires that the type packs %0 and %1 have the same shape "
"(requirement specified as %2.shape == %3.shape)",
"(same-shape requirement inferred between %2 and %3)",
(Type, Type, Type, Type))
NOTE(candidate_types_inheritance_requirement,none,
"candidate requires that %1 inherit from %2 "
"(requirement specified as %2 : %3)",
(Type, Type, Type, Type))
NOTE(same_shape_requirement,none,
"same-shape requirement inferred between %0 and %1%2", (Type, Type, StringRef))
NOTE(types_not_equal_requirement,none,
"requirement specified as %0 == %1%2", (Type, Type, StringRef))
ERROR(type_is_not_a_class,none,