Skip to content

Commit

Permalink
fmt: fix type names for casts (#21036)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Mar 15, 2024
1 parent 6809c67 commit 657e46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/ast/str.v
Expand Up @@ -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)
Expand Down

0 comments on commit 657e46e

Please sign in to comment.