Properly set scope.

This commit is contained in:
chriseth 2020-09-30 19:38:01 +02:00
parent b5a08f8641
commit 2d9479b06c

View File

@ -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&)
{