cgen: do not double-reference anon fn
parent
0a07dc5762
commit
827a9e221f
|
@ -1374,7 +1374,7 @@ fn (mut g Gen) expr(node ast.Expr) {
|
||||||
// TODO: dont fiddle with buffers
|
// TODO: dont fiddle with buffers
|
||||||
g.gen_anon_fn_decl(it)
|
g.gen_anon_fn_decl(it)
|
||||||
fsym := g.table.get_type_symbol(it.typ)
|
fsym := g.table.get_type_symbol(it.typ)
|
||||||
g.write('&${fsym.name}')
|
g.write(fsym.name)
|
||||||
}
|
}
|
||||||
ast.ArrayInit {
|
ast.ArrayInit {
|
||||||
g.array_init(it)
|
g.array_init(it)
|
||||||
|
|
Loading…
Reference in New Issue