diff --git a/vlib/compiler/aparser.v b/vlib/compiler/aparser.v index 3fa3747b90..b50712dfd2 100644 --- a/vlib/compiler/aparser.v +++ b/vlib/compiler/aparser.v @@ -3208,7 +3208,6 @@ fn todo_remove() { fn (p mut Parser) check_if_parser_is_stuck(parsing_cycle u64, parsing_start_ticks i64){ // QTODO - /* if p.prev_stuck_token_idx == p.token_idx { // many many cycles have passed with no progress :-( ... eprintln('Parsing is [probably] stuck. Cycle: ${parsing_cycle:12ld} .') @@ -3225,5 +3224,4 @@ Please create a GitHub issue: https://github.com/vlang/v/issues/new/choose } } p.prev_stuck_token_idx = p.token_idx - */ } diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 036fdba760..566122dc9e 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -447,15 +447,13 @@ pub fn (c mut Checker) match_expr(node mut ast.MatchExpr) table.Type { // If the last statement is an expression, return its type if block.stmts.len > 0 { match block.stmts[block.stmts.len - 1] { - ast.ExprStmt { - a := 0 - // TODO: ask alex about this - // typ := c.expr(it.expr) - // type_sym := c.table.get_type_symbol(typ) - // p.warn('match expr ret $type_sym.name') - // node.typ = typ - // return typ - } + ast.ExprStmt {} + // TODO: ask alex about this + // typ := c.expr(it.expr) + // type_sym := c.table.get_type_symbol(typ) + // p.warn('match expr ret $type_sym.name') + // node.typ = typ + // return typ else {} } } diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index 5d2c77f6e8..abd3f72b15 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -633,7 +633,6 @@ pub fn (p mut Parser) expr(precedence int) (ast.Expr,table.Type) { } // Map `{"age": 20}` or `{ x | foo:bar, a:10 }` .lcbr { - p.warn('kek') p.next() if p.tok.kind == .str { for p.tok.kind != .rcbr && p.tok.kind != .eof {