fixed struct init

This commit is contained in:
SuperAuguste 2020-05-17 09:40:20 -04:00
parent 7e766e3d8a
commit 38213e1322

View File

@ -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 => {}