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:
@@ -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
|
||||
|
Reference in New Issue
Block a user