mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user