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 e8cb103 commit 03a89c7Copy full SHA for 03a89c7
lib/AST/ASTScopeLookup.cpp
@@ -58,7 +58,7 @@ const ASTScopeImpl *ASTScopeImpl::findStartingScopeForLookup(
58
59
auto *const fileScope = sourceFile->getScope().impl;
60
// Parser may have added decls to source file, since previous lookup
61
- sourceFile->getScope().impl->addNewDeclsToScopeTree();
+ fileScope->addNewDeclsToScopeTree();
62
if (name.isOperator())
63
return fileScope; // operators always at file scope
64
0 commit comments