File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -556,7 +556,8 @@ void RewriteSystem::verifyRewriteRules(ValidityPolicy policy) const {
556
556
557
557
if (index != 0 ) {
558
558
ASSERT_RULE (symbol.getKind () != Symbol::Kind::GenericParam ||
559
- lhs[index - 1 ].getKind () == Symbol::Kind::PackElement);
559
+ (index == 1 &&
560
+ lhs[index - 1 ].getKind () == Symbol::Kind::PackElement));
560
561
}
561
562
562
563
if (!rule.isLHSSimplified () &&
@@ -612,7 +613,8 @@ void RewriteSystem::verifyRewriteRules(ValidityPolicy policy) const {
612
613
613
614
if (index != 0 ) {
614
615
ASSERT_RULE (symbol.getKind () != Symbol::Kind::GenericParam ||
615
- lhs[index - 1 ].getKind () == Symbol::Kind::PackElement);
616
+ (index == 1 &&
617
+ lhs[index - 1 ].getKind () == Symbol::Kind::PackElement));
616
618
}
617
619
618
620
if (!rule.isRHSSimplified () &&
You can’t perform that action at this time.
0 commit comments