mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: do not double-reference anon fn
This commit is contained in:
parent
0a07dc5762
commit
827a9e221f
@ -1374,7 +1374,7 @@ fn (mut g Gen) expr(node ast.Expr) {
|
||||
// TODO: dont fiddle with buffers
|
||||
g.gen_anon_fn_decl(it)
|
||||
fsym := g.table.get_type_symbol(it.typ)
|
||||
g.write('&${fsym.name}')
|
||||
g.write(fsym.name)
|
||||
}
|
||||
ast.ArrayInit {
|
||||
g.array_init(it)
|
||||
|
Loading…
Reference in New Issue
Block a user