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:
@ -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
|
||||
|
Reference in New Issue
Block a user