aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-18 08:46:46 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-18 08:46:46 -0400
commitea5f0c47438a85c8a517788c79e27f568af54121 (patch)
tree64bea2154c7962e557cee466eab0baeb08cf0d34 /src/server
parent6d12396da33352a47aa821b48e51512c3601b124 (diff)
Correct check for mutable locals when parsing non mutable only
Diffstat (limited to 'src/server')
-rw-r--r--src/server/locals.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/locals.odin b/src/server/locals.odin
index a602556..38b52c0 100644
--- a/src/server/locals.odin
+++ b/src/server/locals.odin
@@ -265,8 +265,8 @@ get_locals_value_decl :: proc(file: ast.File, value_decl: ast.Value_Decl, ast_co
return
}
- //We have two stages of getting locals: local non mutable and mutables, since they are treated differently in scopes my Odin.
- if value_decl.is_mutable == ast_context.non_mutable_only {
+ //We have two stages of getting locals: local non mutable and mutables, since they are treated differently in scopes by Odin.
+ if ast_context.non_mutable_only && value_decl.is_mutable {
return
}