diff --git a/codegen/src/symboltable.rs b/codegen/src/symboltable.rs index 3cb2939..3182f3d 100644 --- a/codegen/src/symboltable.rs +++ b/codegen/src/symboltable.rs @@ -150,7 +150,7 @@ impl Symbol { } pub fn is_local(&self) -> bool { - self.scope == SymbolScope::Local + matches!(self.scope, SymbolScope::Local | SymbolScope::Cell) } pub fn is_bound(&self) -> bool {