1
0
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:
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

View File

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