From 7a2a965cd764fed289d1c14886649b1eccb7e500 Mon Sep 17 00:00:00 2001 From: sofia Date: Mon, 14 Jul 2025 18:49:51 +0300 Subject: [PATCH] Fix functions being in their own scopes --- reid/src/mir/typecheck.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reid/src/mir/typecheck.rs b/reid/src/mir/typecheck.rs index f3c782f..044bb6e 100644 --- a/reid/src/mir/typecheck.rs +++ b/reid/src/mir/typecheck.rs @@ -56,7 +56,7 @@ impl<'t> Pass for TypeCheck<'t> { fn module(&mut self, module: &mut Module, mut state: PassState) { for function in &mut module.functions { - let res = function.typecheck(&self.refs, &mut state); + let res = function.typecheck(&self.refs, &mut state.inner()); state.ok(res, function.block_meta()); } }