mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
parser: fail when assigning to _ with :=
This commit is contained in:
parent
36edd6295f
commit
11b7b97311
41 changed files with 137 additions and 111 deletions
|
@ -26,7 +26,7 @@ fn test_rand_r_seed_update() {
|
|||
seed := 10
|
||||
for _ in 0 .. rnd_count {
|
||||
prev_seed := seed
|
||||
_ := rand.rand_r(&seed)
|
||||
_ = rand.rand_r(&seed)
|
||||
assert prev_seed != seed
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue