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

checker: arr1=arr2 warning

This commit is contained in:
Alexander Medvednikov
2020-12-20 10:42:46 +01:00
parent 4a5fb854e0
commit 875f7a77a9
5 changed files with 14 additions and 5 deletions

View File

@@ -361,7 +361,10 @@ fn test_clone() {
fn test_copy() {
a := [1, 2, 3]
b := [3, 4, 5]
b := a
assert b[0] == 1
assert b[1] == 2
assert b[2] == 3
}
fn test_mutli_array_clone() {