Skip to content

Commit 29a45d9

Browse files
committed
AST: getMemberForBaseType() should use ArchetypeType::getNestedType() instead of getNestedTypeByName()
1 parent 5ef5957 commit 29a45d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/Type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4411,7 +4411,7 @@ static Type getMemberForBaseType(LookupConformanceFn lookupConformances,
44114411
// If the parent is an archetype, extract the child archetype with the
44124412
// given name.
44134413
if (auto archetypeParent = substBase->getAs<ArchetypeType>()) {
4414-
if (Type memberArchetypeByName = archetypeParent->getNestedTypeByName(name))
4414+
if (Type memberArchetypeByName = archetypeParent->getNestedType(assocType))
44154415
return memberArchetypeByName;
44164416

44174417
// If looking for an associated type and the archetype is constrained to a

0 commit comments

Comments
 (0)