analysis: fix ret type
This commit is contained in:
parent
d69a64dbfb
commit
9d1c9cab7f
|
@ -356,7 +356,7 @@ pub const Analyzer = struct {
|
|||
|
||||
var value_type = try self.resolveExprType(ctx, assign.value);
|
||||
try self.expectSymUnTypeEqual(var_type.?.value, value_type);
|
||||
return var_type;
|
||||
return var_type.?.value;
|
||||
},
|
||||
|
||||
.Set => @panic("TODO analysis of Set exprs"),
|
||||
|
|
Loading…
Reference in New Issue