]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.1396: Vim9: no error for unexpectedly returning a value v8.2.1396
authorBram Moolenaar <Bram@vim.org>
Sat, 8 Aug 2020 14:47:30 +0000 (16:47 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 8 Aug 2020 14:47:30 +0000 (16:47 +0200)
commit5a849da57c5fb54ffcffd436a9e00ef40fdf094c
treea3e29fde05cb840316c5e043635e64407c46087e
parent98b4f145eb89405021e23a4a37db51d60a75a1d0
patch 8.2.1396: Vim9: no error for unexpectedly returning a value

Problem:    Vim9: no error for unexpectedly returning a value.
Solution:   Only set the return type for lambda's.  Make using function type
            in a function reference work.
src/testdir/test_vim9_func.vim
src/version.c
src/vim9compile.c