mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vfmt: fix compilation with -prod
This commit is contained in:
parent
276c1de190
commit
37c6f6ab1b
@ -1293,7 +1293,7 @@ pub fn (mut f Fmt) if_expr(it ast.IfExpr) {
|
||||
if infix.op == .key_is &&
|
||||
(infix.left is ast.Ident || infix.left is ast.SelectorExpr) &&
|
||||
infix.right is ast.Type {
|
||||
right_expr := infix.right as ast.Type
|
||||
//right_expr := infix.right as ast.Type
|
||||
is_variable = if infix.left is ast.Ident { (infix.left as ast.Ident).kind ==
|
||||
.variable } else { true }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user