analysis: fix ret type
This commit is contained in:
parent
d69a64dbfb
commit
9d1c9cab7f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue