mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
rem1
This commit is contained in:
parent
01f45f063e
commit
54605823f9
@ -678,9 +678,6 @@ fn (p mut Parser) for_statement() ast.Stmt {
|
|||||||
}
|
}
|
||||||
// `for cond {`
|
// `for cond {`
|
||||||
cond,ti := p.expr(0)
|
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()
|
stmts := p.parse_block()
|
||||||
return ast.ForStmt{
|
return ast.ForStmt{
|
||||||
cond: cond
|
cond: cond
|
||||||
|
Loading…
x
Reference in New Issue
Block a user