From 572bbda60bb32c21f37efe088387a6690b4b09f3 Mon Sep 17 00:00:00 2001 From: yt2b Date: Thu, 22 Dec 2022 23:27:36 +0900 Subject: [PATCH] Fix is_local --- codegen/src/symboltable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {