Skip to content

Commit c4f4ce1

Browse files
committed
[ConstraintSystem] Record substitutions from opened unbound generic types
Substitutions are already recorded for other situations like member references, this was just slipped under the radar.
1 parent d048df2 commit c4f4ce1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,8 @@ Type ConstraintSystem::openUnboundGenericType(
666666
openGeneric(decl->getDeclContext(), decl->getGenericSignature(), locator,
667667
replacements);
668668

669+
recordOpenedTypes(locator, replacements);
670+
669671
if (parentTy) {
670672
auto subs = parentTy->getContextSubstitutions(decl->getDeclContext());
671673
for (auto pair : subs) {

0 commit comments

Comments
 (0)