mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
compiler/vlib: change _ :=
to _ =
and disable _ :=
This commit is contained in:
parent
746655c1d5
commit
8974aa4513
12 changed files with 33 additions and 33 deletions
|
@ -1378,9 +1378,9 @@ fn (p mut Parser) var_decl() {
|
|||
}
|
||||
for i, name in names {
|
||||
if name == '_' {
|
||||
// if names.len == 1 {
|
||||
// p.error('no new variables on left side of :=')
|
||||
// }
|
||||
if names.len == 1 {
|
||||
p.error('no new variables on left side of :=')
|
||||
}
|
||||
continue
|
||||
}
|
||||
typ := types[i]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue