Skip to content

Commit bf3f4a6

Browse files
committed
AST: Fix lost GenericSignatureErrors in getPlaceholderRequirementSignature()
1 parent 7f8175b commit bf3f4a6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/AST/GenericSignature.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,8 @@ RequirementSignature RequirementSignature::getPlaceholderRequirementSignature(
14361436
});
14371437

14381438
return RequirementSignature(ctx.AllocateCopy(requirements),
1439-
ArrayRef<ProtocolTypeAlias>());
1439+
ArrayRef<ProtocolTypeAlias>(),
1440+
errors);
14401441
}
14411442

14421443
void RequirementSignature::getRequirementsWithInverses(

validation-test/compiler_crashers_2/b93e9e54c72f13c9.swift renamed to validation-test/compiler_crashers_2_fixed/b93e9e54c72f13c9.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// {"signature":"swift::rewriting::RewriteSystem::processTypeDifference(swift::rewriting::TypeDifference const&, unsigned int, unsigned int, swift::rewriting::RewritePath const&)"}
2-
// RUN: not --crash %target-swift-frontend -typecheck %s
2+
// RUN: not %target-swift-frontend -typecheck %s
33
class a < b class c<b, h> : a<(b, h)> protocol d {
44
associatedtype b : c<e, f> associatedtype e associatedtype f associatedtype b
55
: a<g>

0 commit comments

Comments
 (0)