We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe6cfe2 commit 7c91107Copy full SHA for 7c91107
include/swift/AST/PackExpansionMatcher.h
@@ -186,7 +186,13 @@ class TypeListPackMatcher {
186
}
187
188
189
- // Both sides have equal number of pack expansion type.
+ // If both sides have the same number of elements and all of
190
+ // them are pack expansions there is not going to be any
191
+ // expansion "absorption" and it's okay to match per-index.
192
+ //
193
+ // Like in all previous cases the callers are responsible
194
+ // to check whether the element types actually line up,
195
+ // this is a purely structural match.
196
if (lhsElts.size() == rhsElts.size()) {
197
for (unsigned i = 0, n = lhsElts.size(); i != n; ++i) {
198
auto lhsType = getElementType(lhsElts[i]);
0 commit comments