fixed struct init
This commit is contained in:
parent
7e766e3d8a
commit
38213e1322
@ -267,7 +267,7 @@ pub fn resolveTypeOfNode(analysis_ctx: *AnalysisContext, node: *ast.Node) ?*ast.
|
|||||||
.SuffixOp => {
|
.SuffixOp => {
|
||||||
const suffix_op = node.cast(ast.Node.SuffixOp).?;
|
const suffix_op = node.cast(ast.Node.SuffixOp).?;
|
||||||
switch (suffix_op.op) {
|
switch (suffix_op.op) {
|
||||||
.Call => {
|
.Call, .StructInitializer => {
|
||||||
return resolveTypeOfNode(analysis_ctx, suffix_op.lhs.node);
|
return resolveTypeOfNode(analysis_ctx, suffix_op.lhs.node);
|
||||||
},
|
},
|
||||||
else => {}
|
else => {}
|
||||||
|
Loading…
Reference in New Issue
Block a user