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:
parent
4ba9a2ffbe
commit
0347dadf75
@ -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() {
|
if to_sym.kind == .rune && from_sym.is_string() {
|
||||||
snexpr := node.expr.str()
|
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 {
|
if to_type == ast.string_type {
|
||||||
|
Loading…
Reference in New Issue
Block a user