Fix symbol scope

This commit is contained in:
yt2b 2022-12-18 09:48:35 +09:00
parent 408d15f608
commit 66d79ce568

View file

@ -483,7 +483,7 @@ impl SymbolTableAnalyzer {
};
} else {
let mut cloned_sym = symbol.clone();
cloned_sym.scope = SymbolScope::Local;
cloned_sym.scope = SymbolScope::Cell;
last.0.insert(cloned_sym.name.to_owned(), cloned_sym);
}
}