> On Mon, Oct 10, 2022 at 7:17 AM zeertzjq <[email protected]> wrote:
> 
> > Steps to reproduce
> >
> >    1. Run vim --clean
> >    2. Run `:call append({}, '')
> >    3. Double error messages:
> >
> > E728: Using a Dictionary as a Number
> > E731: Using a Dictionary as a String
> >
> >
> To address this, in the f_append() function, the check for in_vim9script()
> should be removed.

I don't think that works, the problem comes from the argument can be a
number or a string.  It tries both, but that shouldn't happen when using
it as a number produced an error.

-- 
ARTHUR:  Well, I AM king...
DENNIS:  Oh king, eh, very nice.  An' how'd you get that, eh?  By exploitin'
         the workers -- by 'angin' on to outdated imperialist dogma which
         perpetuates the economic an' social differences in our society!  If
         there's ever going to be any progress--
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/20221010151157.5F6CF1C5296%40moolenaar.net.

Raspunde prin e-mail lui