vfmt: fix compilation with -prod

pull/5941/head
Delyan Angelov 2020-07-22 21:43:20 +03:00
parent 276c1de190
commit 37c6f6ab1b
1 changed files with 1 additions and 1 deletions

View File

@ -1293,7 +1293,7 @@ pub fn (mut f Fmt) if_expr(it ast.IfExpr) {
if infix.op == .key_is && if infix.op == .key_is &&
(infix.left is ast.Ident || infix.left is ast.SelectorExpr) && (infix.left is ast.Ident || infix.left is ast.SelectorExpr) &&
infix.right is ast.Type { 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 == is_variable = if infix.left is ast.Ident { (infix.left as ast.Ident).kind ==
.variable } else { true } .variable } else { true }
} }