ci: fix -autofree cmd/v compilation job regression

pull/9614/head
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
1 changed files with 3 additions and 1 deletions

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")')
}
}