mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser, checker: check assert optional (#10319)
This commit is contained in:
@@ -685,7 +685,7 @@ pub fn (mut p Parser) stmt(is_top_level bool) ast.Stmt {
|
||||
pos.update_last_line(p.prev_tok.line_nr)
|
||||
return ast.AssertStmt{
|
||||
expr: expr
|
||||
pos: pos
|
||||
pos: pos.extend(p.tok.position())
|
||||
is_used: p.inside_test_file || !p.pref.is_prod
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user