Be extremely conservative about guessing scopes when we don't know.

This commit is contained in:
Adam Kelly 2019-08-31 16:39:27 +01:00
parent ca09cc215d
commit 9c17d982ff

View file

@ -252,8 +252,8 @@ impl SymbolTableAnalyzer {
// Symbol is in some outer scope. // Symbol is in some outer scope.
symbol.is_free = true; symbol.is_free = true;
} else { } else {
// Well, it must be a global then :) // Don't make assumptions when we don't know.
symbol.scope = SymbolScope::Global; symbol.scope = SymbolScope::Unknown;
} }
} }
} }