mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Use static names in typechecker. (#985)
This commit is contained in:
@@ -330,9 +330,7 @@ void ResolveNames(AST& ast) {
|
||||
for (auto declaration : ast.declarations) {
|
||||
ResolveNames(*declaration, file_scope);
|
||||
}
|
||||
if (ast.main_call.has_value()) {
|
||||
ResolveNames(**ast.main_call, file_scope);
|
||||
}
|
||||
ResolveNames(**ast.main_call, file_scope);
|
||||
}
|
||||
|
||||
} // namespace Carbon
|
||||
|
||||
Reference in New Issue
Block a user