1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: vfmt checker.v

This commit is contained in:
Delyan Angelov 2022-01-24 14:01:35 +02:00
parent 4ba9a2ffbe
commit 0347dadf75
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -2734,7 +2734,8 @@ pub fn (mut c Checker) cast_expr(mut node ast.CastExpr) ast.Type {
if to_sym.kind == .rune && from_sym.is_string() {
snexpr := node.expr.str()
c.error('cannot cast `$from_sym.name` to rune, use `${snexpr}.runes()` instead.', node.pos)
c.error('cannot cast `$from_sym.name` to rune, use `${snexpr}.runes()` instead.',
node.pos)
}
if to_type == ast.string_type {