aboutsummaryrefslogtreecommitdiff
path: root/src/server/analysis.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-13 21:05:46 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-13 21:05:46 -0400
commite31dfce18bd64cbf7dcceb1f8718fc5b1e94450c (patch)
tree30df4b989d17d294d56b0405f6dd228022aa2416 /src/server/analysis.odin
parent135e03599cc33831de46181aef69ffce24976f3d (diff)
Correctly handle type casts
Diffstat (limited to 'src/server/analysis.odin')
-rw-r--r--src/server/analysis.odin2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin
index 08965fb..886e647 100644
--- a/src/server/analysis.odin
+++ b/src/server/analysis.odin
@@ -2046,6 +2046,8 @@ resolve_location_type_identifier :: proc(ast_context: ^AstContext, node: ast.Ide
return resolve_location_type_expression(ast_context, n.elem)
case ^ast.Unary_Expr:
return resolve_location_type_expression(ast_context, n.expr)
+ case ^ast.Type_Cast:
+ return resolve_location_type_expression(ast_context, n.type)
}
} else if global, ok := ast_context.globals[node.name]; ok {
// Ideally we'd have a way to extract the full symbol of a global, but for now