cgen: do not double-reference anon fn

pull/5362/head
Adam Stankiewicz 2020-06-12 10:48:44 +02:00 committed by GitHub
parent 0a07dc5762
commit 827a9e221f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)