Mercurial > vim
view ci/if_ver-cmd.vim @ 21160:1a393685e7ce v8.2.1131
patch 8.2.1131: Vim9: error message for returning a value is not clear
Commit: https://github.com/vim/vim/commit/05a5551a86e013e35d1dfa10fd0d811c587f9c88
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 5 15:52:19 2020 +0200
patch 8.2.1131: Vim9: error message for returning a value is not clear
Problem: Vim9: error message for returning a value in a function that does
not return anything is not clear.
Solution: Add a specific message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Jul 2020 16:00:04 +0200 |
parents | 27ff44268da5 |
children |
line wrap: on
line source
" Provide 'PrintVer' command to print the interface versions. func s:print_ver(lang, ...) if has(a:lang) exec a:lang join(a:000) else echo 'N/A' endif echo '' endfunc command -nargs=+ PrintVer call <SID>print_ver(<f-args>)