1
0
forked from aniani/vim

patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"

Problem:    Vim9: cannot index or slice a variable with type "any".
Solution:   Add runtime index and slice.
This commit is contained in:
Bram Moolenaar
2020-08-16 17:33:35 +02:00
parent 56acb0943e
commit cc673e746a
11 changed files with 417 additions and 212 deletions

View File

@@ -914,7 +914,7 @@ list_slice_or_index(
semsg(_(e_listidx), n1);
return FAIL;
}
n1 = len;
n1 = n1 < 0 ? 0 : len;
}
if (range)
{