vfmt: fix compilation with -prod
parent
276c1de190
commit
37c6f6ab1b
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue