diff --git a/src/analysis.zig b/src/analysis.zig index 749357b..f2caf5e 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -294,6 +294,7 @@ pub fn resolveTypeOfNode(analysis_ctx: *AnalysisContext, node: *ast.Node) ?*ast. }, .Identifier => { if (getChildOfSlice(analysis_ctx.tree(), analysis_ctx.scope_nodes, analysis_ctx.tree().getNodeSource(node))) |child| { + if (child == node) return null; return resolveTypeOfNode(analysis_ctx, child); } else return null; },