Fix is_local

This commit is contained in:
yt2b 2022-12-22 23:27:36 +09:00
parent 5f4309c62c
commit 572bbda60b

View file

@ -150,7 +150,7 @@ impl Symbol {
} }
pub fn is_local(&self) -> bool { pub fn is_local(&self) -> bool {
self.scope == SymbolScope::Local matches!(self.scope, SymbolScope::Local | SymbolScope::Cell)
} }
pub fn is_bound(&self) -> bool { pub fn is_bound(&self) -> bool {