From 27d3800cc3c2655c256aba1a18b7f7bbcbfce2dd Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 12 May 2020 00:19:45 +0200 Subject: [PATCH] parser: bring back "evaluated but not used" --- vlib/v/parser/parser.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index d793964da5..09c24e88f6 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -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)