1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix -autofree cmd/v compilation job regression

This commit is contained in:
Delyan Angelov 2021-04-06 15:21:11 +03:00
parent c1f2c570bc
commit 87a16bbfe9
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -3180,7 +3180,9 @@ fn (mut g Gen) typeof_expr(node ast.TypeOf) {
varg_elem_type_sym := g.table.get_type_symbol(g.table.value_type(node.expr_type))
g.write('_SLIT("...${util.strip_main_name(varg_elem_type_sym.name)}")')
} else {
g.write('_SLIT("${util.strip_main_name(g.table.type_to_str(node.expr_type))}")')
x := g.table.type_to_str(node.expr_type)
y := util.strip_main_name(x)
g.write('_SLIT("$y")')
}
}