From 87a16bbfe938066b4b819ec334d094b15114137a Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 6 Apr 2021 15:21:11 +0300 Subject: [PATCH] ci: fix -autofree cmd/v compilation job regression --- vlib/v/gen/c/cgen.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index 14f2649268..543bfde478 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -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")') } }