Skip to content

Commit 657e46e

Browse files
authored
fmt: fix type names for casts (#21036)
1 parent 6809c67 commit 657e46e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/v/ast/str.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ pub fn (x Expr) str() string {
439439
return x.val.str()
440440
}
441441
CastExpr {
442-
return '${x.typname}(${x.expr.str()})'
442+
return '${global_table.type_to_str(x.typ)}(${x.expr.str()})'
443443
}
444444
CallExpr {
445445
sargs := args2str(x.args)

0 commit comments

Comments
 (0)