We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ef5957 commit 29a45d9Copy full SHA for 29a45d9
lib/AST/Type.cpp
@@ -4411,7 +4411,7 @@ static Type getMemberForBaseType(LookupConformanceFn lookupConformances,
4411
// If the parent is an archetype, extract the child archetype with the
4412
// given name.
4413
if (auto archetypeParent = substBase->getAs<ArchetypeType>()) {
4414
- if (Type memberArchetypeByName = archetypeParent->getNestedTypeByName(name))
+ if (Type memberArchetypeByName = archetypeParent->getNestedType(assocType))
4415
return memberArchetypeByName;
4416
4417
// If looking for an associated type and the archetype is constrained to a
0 commit comments