mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: fix := test
This commit is contained in:
parent
3956ea4665
commit
bc8aab4775
@ -1,13 +1,7 @@
|
||||
vlib/v/checker/tests/assign_mut.vv:3:9: error: `mut` not allowed with `=` (use `:=` to declare a variable)
|
||||
vlib/v/checker/tests/assign_mut.vv:3:11: error: expecting `:=` (e.g. `mut x :=`)
|
||||
1 | fn main() {
|
||||
2 | mut z := 1
|
||||
3 | mut z = 1
|
||||
| ^
|
||||
| ^
|
||||
4 | mut i := 2
|
||||
5 | i, mut z = 2,3
|
||||
vlib/v/checker/tests/assign_mut.vv:5:12: error: `mut` not allowed with `=` (use `:=` to declare a variable)
|
||||
3 | mut z = 1
|
||||
4 | mut i := 2
|
||||
5 | i, mut z = 2,3
|
||||
| ^
|
||||
6 | }
|
||||
|
@ -851,9 +851,6 @@ fn (mut p Parser) parse_multi_expr(is_top_level bool) ast.Stmt {
|
||||
// 1, a, c ... } // multi-expression
|
||||
// a, mut b ... :=/= // multi-assign
|
||||
// collect things upto hard boundaries
|
||||
$if debug {
|
||||
p.warn('xxx')
|
||||
}
|
||||
tok := p.tok
|
||||
left, left_comments := p.expr_list()
|
||||
left0 := left[0]
|
||||
|
Loading…
Reference in New Issue
Block a user