[vim/vim] Make extend() accept blobs (PR #20958)

バクダンくん (Vim Github Repository) <[email protected]> Thu, 06 Aug 2026 07:04:26 -0700
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/pull/[email protected]>
Hello,
I tried to make `extend()` accept blobs, but I couldn't figure out how to resolve the test error:

> From test_vim9_builtin.vim:
> Found errors in Test_extend_arg_types():
> command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[636]..function RunTheTest[63]..Test_extend_arg_types[47]..<SNR>10_CheckSourceDefFailure line 6: command did not fail: ['extend(0z01, 42)']

Can anyone help me?
Using gdb, I found that when the first argument for `extend()` is `0z01`, its `decl_type` is `VAR_ANY`. Is this the right behavior?
You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20958

-- Commit Summary --

  * Make extend() accept blobs

-- File Changes --

    M runtime/doc/builtin.txt (38)
    M runtime/doc/eval.txt (8)
    M src/blob.c (111)
    M src/errors.h (2)
    M src/evalfunc.c (50)
    M src/list.c (8)
    M src/proto/blob.pro (1)
    M src/testdir/test_listdict.vim (82)
    M src/testdir/test_tuple.vim (4)
    M src/testdir/test_vim9_builtin.vim (38)

-- Patch Links --

https://github.com/vim/vim/pull/20958.patch
https://github.com/vim/vim/pull/20958.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20958
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/pull/[email protected]>

-- 
-- 
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 visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20958%40github.com.