mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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.
This commit is contained in:
@@ -666,6 +666,8 @@ Type ConstraintSystem::openUnboundGenericType(
|
||||
openGeneric(decl->getDeclContext(), decl->getGenericSignature(), locator,
|
||||
replacements);
|
||||
|
||||
recordOpenedTypes(locator, replacements);
|
||||
|
||||
if (parentTy) {
|
||||
auto subs = parentTy->getContextSubstitutions(decl->getDeclContext());
|
||||
for (auto pair : subs) {
|
||||
|
||||
Reference in New Issue
Block a user