view ci/if_ver-cmd.vim @ 22363:6c3d15011081 v8.2.1730

patch 8.2.1730: Vim9: cannot use member of unknown type Commit: https://github.com/vim/vim/commit/04bdd573d0a48e789eb92ed2a81e0dd732761391 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 23 13:25:32 2020 +0200 patch 8.2.1730: Vim9: cannot use member of unknown type Problem: Vim9: cannot use member of unknown type. Solution: When type is unknown us "any". (closes https://github.com/vim/vim/issues/6997)
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Sep 2020 13:30:03 +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>)