ast.table: fix anonymous function declaration uniqueness for non-tcc c compilers (#10509)
parent
1a52da9f62
commit
71b41d1042
|
@ -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 += '_'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue