mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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:
@@ -120,6 +120,8 @@ typedef enum {
|
||||
ISN_STRSLICE, // [expr:expr] string slice
|
||||
ISN_LISTINDEX, // [expr] list index
|
||||
ISN_LISTSLICE, // [expr:expr] list slice
|
||||
ISN_ANYINDEX, // [expr] runtime index
|
||||
ISN_ANYSLICE, // [expr:expr] runtime slice
|
||||
ISN_SLICE, // drop isn_arg.number items from start of list
|
||||
ISN_GETITEM, // push list item, isn_arg.number is the index
|
||||
ISN_MEMBER, // dict[member]
|
||||
|
Reference in New Issue
Block a user