mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Checking of pack requirements
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user