Skip to content

Commit

Permalink
ast.table: fix anonymous function declaration uniqueness for non-tcc …
Browse files Browse the repository at this point in the history
…c compilers (#10509)
  • Loading branch information
crthpl committed Jun 19, 2021
1 parent 1a52da9 commit 71b41d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlib/v/ast/table.v
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ pub fn (t &Table) fn_type_signature(f &Fn) string {
// TODO: for now ignore mut/pts in sig for now
typ := arg.typ.set_nr_muls(0)
arg_type_sym := t.get_type_symbol(typ)
sig += '$arg_type_sym.kind'
sig += arg_type_sym.str().to_lower().replace_each(['.', '__', '&', '', '[]', 'arr_', 'chan ',
'chan_', 'map[', 'map_of_', ']', '_to_'])
if i < f.params.len - 1 {
sig += '_'
}
Expand Down

0 comments on commit 71b41d1

Please sign in to comment.