aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-17 19:41:00 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-09-17 19:44:45 -0400
commit753404b760316aed6c612be1c2bb6d6ebf70ebce (patch)
treef31e480002b6177c16d714646772e46df06dcb7c /src/server
parent761f556b80abe30d7b2b6c1c692d584eeff91795 (diff)
Correctly type fixed array selector fields
Diffstat (limited to 'src/server')
-rw-r--r--src/server/analysis.odin4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin
index db37ef7..8dc1877 100644
--- a/src/server/analysis.odin
+++ b/src/server/analysis.odin
@@ -1405,7 +1405,8 @@ resolve_selector_expression :: proc(ast_context: ^AstContext, node: ^ast.Selecto
set_ast_package_from_symbol_scoped(ast_context, selector)
ok := internal_resolve_type_expression(ast_context, s.expr, &symbol)
- symbol.type = .Variable
+ symbol.type = .Field
+ symbol.flags |= {.Mutable}
return symbol, ok
} else {
value := SymbolFixedArrayValue {
@@ -2489,6 +2490,7 @@ resolve_unresolved_symbol :: proc(ast_context: ^AstContext, symbol: ^Symbol) ->
symbol.signature = ret.signature
symbol.value = ret.value
symbol.pkg = ret.pkg
+ symbol.flags = ret.flags
} else {
return false
}