Handle lookup into Builtin with module selector

Lookups like Builtin::Int64 were failing because BuiltinUnit rejected all unqualified lookups. Make it allow unqualified lookups with a module selector.
This commit is contained in:
Becca Royal-Gordon
2025-08-20 15:00:19 -07:00
parent 7bf14de2e6
commit ffaa35810c
16 changed files with 85 additions and 41 deletions

View File

@@ -10301,8 +10301,7 @@ performMemberLookup(ConstraintKind constraintKind, DeclNameRef memberName,
}
}
DeclName unprefixedName(context, memberName.getBaseName(), lookupLabels);
lookupName = DeclNameRef(unprefixedName);
lookupName = lookupName.withArgumentLabels(context, lookupLabels);
}
// Look for members within the base.