Skip to content

Commit 8a08872

Browse files
committed
GSB: Force PotentialArchetypes for associated types with no requirements
This doesn't actually matter, except to make requirement machine minimization cross-checking work on highly invalid code with duplicate associated type declarations in the same protocol.
1 parent 494e13c commit 8a08872

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4159,6 +4159,8 @@ ConstraintResult GenericSignatureBuilder::expandConformanceRequirement(
41594159
Type assocType =
41604160
DependentMemberType::get(selfType.getDependentType(*this), assocTypeDecl);
41614161
if (!onlySameTypeConstraints) {
4162+
(void) resolve(assocType, source);
4163+
41624164
auto assocResult =
41634165
addInheritedRequirements(assocTypeDecl, assocType, source,
41644166
/*inferForModule=*/nullptr);

0 commit comments

Comments
 (0)