autofree: set tmp var pos

pull/7152/head
Alexander Medvednikov 2020-12-05 21:27:49 +01:00
parent 946a1418fe
commit 22ebbab462
1 changed files with 1 additions and 0 deletions

View File

@ -654,6 +654,7 @@ fn (mut g Gen) autofree_call_pregen(node ast.CallExpr) {
name: t
typ: table.string_type
is_autofree_tmp: true
pos: node.pos
})
s = 'string $t = '
}