1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: fail when assigning to _ with :=

This commit is contained in:
Enzo Baldisserri
2020-06-08 00:47:04 +02:00
committed by GitHub
parent 36edd6295f
commit 11b7b97311
41 changed files with 137 additions and 111 deletions

View File

@ -593,7 +593,7 @@ fn test_array_str() {
numbers := [1, 2, 3]
assert numbers == [1,2,3]
numbers2 := [numbers, [4, 5, 6]] // dup str() bug
_=numbers2
_ = numbers2
assert true
assert numbers.str() == '[1, 2, 3]'
// QTODO