1
0
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:
Delyan Angelov 2020-07-22 21:43:20 +03:00
parent 276c1de190
commit 37c6f6ab1b

View File

@ -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 }
}