0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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

@@ -793,8 +793,8 @@ def Test_try_catch()
endtry
assert_equal(99, n)
# TODO: this will change when index on "any" works
try
# string slice returns a string, not a number
n = g:astring[3]
catch /E1029:/
n = 77