From 657e46ebea21e2bed2ec9920dc8326259d2cd725 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 15 Mar 2024 16:24:17 -0300 Subject: [PATCH] fmt: fix type names for casts (#21036) --- vlib/v/ast/str.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/ast/str.v b/vlib/v/ast/str.v index 2ace55fb685346..8395815abc63f3 100644 --- a/vlib/v/ast/str.v +++ b/vlib/v/ast/str.v @@ -439,7 +439,7 @@ pub fn (x Expr) str() string { return x.val.str() } CastExpr { - return '${x.typname}(${x.expr.str()})' + return '${global_table.type_to_str(x.typ)}(${x.expr.str()})' } CallExpr { sargs := args2str(x.args)