Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Oct 5, 2024
1 parent 3cd540d commit 0c44376
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vlib/v/checker/fn.v
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ fn (mut c Checker) fn_decl(mut node ast.FnDecl) {
node.return_type_pos)
}
}
if c.needs_unwrap_generic_type(node.return_type) {
// resolve generic Array[T], Map[T] generics
c.table.unwrap_generic_type(node.return_type, c.table.cur_fn.generic_names,
c.table.cur_concrete_types)
}
}
return_sym := c.table.sym(node.return_type)
if return_sym.info is ast.Alias {
Expand Down

0 comments on commit 0c44376

Please sign in to comment.