Hi,

When I source the following Vim9 script:

--------------------------------------------------------------------------------------
vim9script

def Test()
  var a: dict<any> = {b: {}}
  a.b->extend({f1: 1,
                        f2: 2})
enddef
v:errmsg = ''
Test()
echo v:errmsg
--------------------------------------------------------------------------------------

I get the "E116: Invalid arguments for function extend({f1: 1," error.
If I pass the arguments to extend() in a single line, then it works
without this error. Is this expected?

Interestingly, this error doesn't abort the function and the error
message is not displayed automatically. It is only set in the
v:errmsg variable.

- 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/CAAW7x7mnZy0aPkoHX9u2-%3D66uG3cuiLH5s3bMGOf_c7qXOT49w%40mail.gmail.com.

Raspunde prin e-mail lui