Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 29, 2024
1 parent 5db05b9 commit bdc56c0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions vlib/v/checker/assign.v
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,6 @@ fn (mut c Checker) assign_stmt(mut node ast.AssignStmt) {
if right.name == 'map' && right.args.len > 0
&& right.args[0].expr is ast.AsCast {
left.obj.ct_type_var = .generic_var
fn_ret_type := c.table.find_or_register_array(c.unwrap_generic((right.args[0].expr as ast.AsCast).typ))
c.type_resolver.type_map['g.${left.name}.${left.obj.pos.pos}'] = fn_ret_type
} else if left.obj.ct_type_var in [.generic_var, .no_comptime]
&& c.table.cur_fn != unsafe { nil }
&& c.table.cur_fn.generic_names.len != 0
Expand Down
1 change: 0 additions & 1 deletion vlib/v/gen/c/assign.v
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ fn (mut g Gen) assign_stmt(node_ ast.AssignStmt) {
var_type = g.table.find_or_register_array(g.unwrap_generic((val.args[0].expr as ast.AsCast).typ))
val_type = var_type
left.obj.typ = var_type
g.type_resolver.type_map['g.${left.name}.${left.obj.pos.pos}'] = var_type
g.assign_ct_type = var_type
}
}
Expand Down

0 comments on commit bdc56c0

Please sign in to comment.