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.
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim
index 1e265be..3b8264f 100644
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -793,8 +793,8 @@
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