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

checker: update check for arr=arr1 (#7651)

This commit is contained in:
Swastik Baranwal
2020-12-28 23:05:34 +05:30
committed by GitHub
parent 9631eac9c5
commit 2795f929fa
2 changed files with 3 additions and 1 deletions

View File

@@ -352,6 +352,7 @@ fn test_mut_arg() {
fn test_clone() {
nums := [1, 2, 3, 4, 100]
_ = nums
nums2 := nums.clone()
assert nums2.len == 5
assert nums.str() == '[1, 2, 3, 4, 100]'