Properly set scope.

This commit is contained in:
chriseth
2020-10-08 18:56:17 +02:00
parent b5a08f8641
commit 2d9479b06c
@@ -130,8 +130,11 @@ bool NameAndTypeResolver::resolveNamesAndTypes(SourceUnit& _source)
try
{
for (shared_ptr<ASTNode> const& node: _source.nodes())
{
setScope(&_source);
if (!resolveNamesAndTypesInternal(*node, true))
return false;
}
}
catch (langutil::FatalError const&)
{