diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-18 09:48:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-18 09:48:56 -0400 |
| commit | 42b404f3c0f66c089a13e7bed5d0bbc05f7f3bf6 (patch) | |
| tree | 64bea2154c7962e557cee466eab0baeb08cf0d34 /src/server | |
| parent | 6d12396da33352a47aa821b48e51512c3601b124 (diff) | |
| parent | ea5f0c47438a85c8a517788c79e27f568af54121 (diff) | |
Merge pull request #903 from BradLewis/fix/non-mutable-locals
Correct check for mutable locals when parsing non mutable only
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/locals.odin | 4 |
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 } |