analysis: fix ret type

This commit is contained in:
Luna 2019-10-05 10:33:37 -03:00
parent d69a64dbfb
commit 9d1c9cab7f
1 changed files with 1 additions and 1 deletions

View File

@ -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"),