From 753404b760316aed6c612be1c2bb6d6ebf70ebce Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Wed, 17 Sep 2025 19:41:00 -0400 Subject: Correctly type fixed array selector fields --- src/server/analysis.odin | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 } -- cgit v1.2.3