Skip to content

Commit

Permalink
Fix build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed Dec 24, 2023
1 parent 9f04262 commit a9f5945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/ast/Lookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2182,7 +2182,7 @@ void Lookup::reportUndeclared(const Scope& initialScope, std::string_view name,
}

// Also check for a package with this name.
if (auto pkg = comp.getPackage(name)) {
if (comp.getPackage(name)) {
result.addDiag(initialScope, diag::UndeclaredButFoundPackage, range.end()) << name << range;
return;
}
Expand Down

0 comments on commit a9f5945

Please sign in to comment.