patch 8.2.4548: script-local function is deleted when used in a funcref v8.2.4548
authorBram Moolenaar <Bram@vim.org>
Fri, 11 Mar 2022 18:54:17 +0000 (18:54 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 11 Mar 2022 18:54:17 +0000 (18:54 +0000)
commitfb43cfc2c6a003b850343bfd27cb3059c734d7d4
tree3fcc51a6f034d757087b3b67c15ad3645e1031da
parentf52fac2ed94e6acc9612103c6c6f55660cc695c8
patch 8.2.4548: script-local function is deleted when used in a funcref

Problem:    Script-local function is deleted when used in a funcref.
Solution:   Do not consider a function starting with "<SNR>" reference
            counted. (closes #9916, closes #9820)
src/testdir/test_vim9_func.vim
src/userfunc.c
src/version.c