From 54605823f98cf6e84d1e8a7e3685c2138fddc88a Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 3 Feb 2020 11:45:25 +0100 Subject: [PATCH] rem1 --- vlib/v/parser/parser.v | 3 --- 1 file changed, 3 deletions(-) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index 811730f970..a3758bac0c 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -678,9 +678,6 @@ fn (p mut Parser) for_statement() ast.Stmt { } // `for cond {` cond,ti := p.expr(0) - if !p.table.check(table.bool_type, ti) { - p.error('non-bool used as for condition') - } stmts := p.parse_block() return ast.ForStmt{ cond: cond