Hi,
The following Vim9 function fails with "E1141: Indexable type required":
======================================================
vim9script
def g:Test()
var req = {}
req.params = {}
req.params.id = 10
echomsg req
enddef
call g:Test()
======================================================
The following legacy function works:
======================================================
func g:Test()
let req = {}
let req.params = {}
let req.params.id = 10
echomsg req
endfunc
call g:Test()
======================================================
Am I missing something here?
Thanks,
Yegappan
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAAW7x7nDiBE3fpb0PAeoRyxYyX7uAGCMbkddTQDc3ZDBN%3DABRA%40mail.gmail.com.