mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Take DeclNameRef in UnqualifiedLookup and lookupQualified()
This commit is contained in:
@@ -1486,7 +1486,7 @@ bool AssignmentFailure::diagnoseAsError() {
|
||||
if (auto typeContext = DC->getInnermostTypeContext()) {
|
||||
SmallVector<ValueDecl *, 2> results;
|
||||
DC->lookupQualified(typeContext->getSelfNominalTypeDecl(),
|
||||
VD->getFullName(), NL_QualifiedDefault, results);
|
||||
VD->createNameRef(), NL_QualifiedDefault, results);
|
||||
|
||||
auto foundProperty = llvm::find_if(results, [&](ValueDecl *decl) {
|
||||
// We're looking for a settable property that is the same type as the
|
||||
|
||||
Reference in New Issue
Block a user