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

@@ -11,7 +11,7 @@ pub fn args_after(cut_word string) []string {
}
mut cargs := []string{}
if cut_word !in args {
cargs = args
cargs = args.clone()
} else {
mut found := false
cargs << args[0]
@@ -37,7 +37,7 @@ pub fn args_before(cut_word string) []string {
}
mut cargs := []string{}
if cut_word !in args {
cargs = args
cargs = args.clone()
} else {
cargs << args[0]
for a in args[1..] {