Skip to content

Commit

Permalink
parser: bring back "evaluated but not used"
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed May 11, 2020
1 parent 1c8e14c commit 27d3800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/parser/parser.v
Expand Up @@ -487,7 +487,7 @@ pub fn (mut p Parser) stmt() ast.Stmt {
p.error_with_pos('unexpected name `$p.peek_tok.lit`', p.peek_tok.position())
} else if p.tok.kind == .name && !p.inside_if_expr && !p.inside_match && !p.inside_or_expr &&
p.peek_tok.kind in [.rcbr, .eof] {
// p.error_with_pos('`$p.tok.lit` evaluated but not used', p.tok.position())
p.error_with_pos('`$p.tok.lit` evaluated but not used', p.tok.position())
}
epos := p.tok.position()
expr := p.expr(0)
Expand Down

0 comments on commit 27d3800

Please sign in to comment.