Skip to content

Commit

Permalink
fmt fn.v
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Dec 3, 2024
1 parent bba2f50 commit bda610b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vlib/v/parser/fn.v
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,11 @@ fn (mut p Parser) anon_fn() ast.AnonFn {
p.cur_fn_name = keep_fn_name
func.name = name
idx := p.table.find_or_register_fn_type(func, true, false)
typ := if generic_names.len > 0 { ast.new_type(idx).set_flag(.generic) } else { ast.new_type(idx) }
typ := if generic_names.len > 0 {
ast.new_type(idx).set_flag(.generic)
} else {
ast.new_type(idx)
}
p.inside_defer = old_inside_defer
// name := p.table.get_type_name(typ)
return ast.AnonFn{
Expand Down

0 comments on commit bda610b

Please sign in to comment.