diff --git a/src/analysis.zig b/src/analysis.zig index bb064b2..e6aaadb 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -267,7 +267,7 @@ pub fn resolveTypeOfNode(analysis_ctx: *AnalysisContext, node: *ast.Node) ?*ast. .SuffixOp => { const suffix_op = node.cast(ast.Node.SuffixOp).?; switch (suffix_op.op) { - .Call => { + .Call, .StructInitializer => { return resolveTypeOfNode(analysis_ctx, suffix_op.lhs.node); }, else => {}