From edba04ae6266536cf7285570eb31245298a5123f Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Thu, 30 Apr 2026 02:02:02 -0400 Subject: [tnslc] small fix for finding module vars --- tnslc/compile/function.tnsl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tnslc/compile/function.tnsl') diff --git a/tnslc/compile/function.tnsl b/tnslc/compile/function.tnsl index 0a22f8d..bde7d2c 100644 --- a/tnslc/compile/function.tnsl +++ b/tnslc/compile/function.tnsl @@ -544,7 +544,8 @@ struct Function { # If could not find in scope then try to find in module ~uint8 name = base`.data v`.push(~name) - vv = s`.mod`.find(SEARCH_VAR, v) + ~Module mod = s`.mod + vv = mod`.find(SEARCH_VAR, v) /; if (vv !== NULL) result = vv`.as_global() v`.end() @@ -623,7 +624,7 @@ struct Function { ;/ self._compile_chain_r_post(s, post, ~result) ;/ - + return result ;/ -- cgit v1.2.3