Mercurial > vim
diff src/testdir/test_vim9_disassemble.vim @ 20029:8fb1cf4c44d5 v8.2.0570
patch 8.2.0570: Vim9: no error when omitting type from argument
Commit: https://github.com/vim/vim/commit/6e949784be29bfaea6e49a9d8231481eae10fab6
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 13 17:21:00 2020 +0200
patch 8.2.0570: Vim9: no error when omitting type from argument
Problem: Vim9: no error when omitting type from argument.
Solution: Enforce specifying argument types.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 13 Apr 2020 17:30:05 +0200 |
parents | e9af5a09a55b |
children | 336483164ca6 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_disassemble.vim +++ b/src/testdir/test_vim9_disassemble.vim @@ -160,7 +160,7 @@ def Test_disassemble_new() res) enddef -def FuncWithArg(arg) +def FuncWithArg(arg: any) echo arg enddef @@ -432,7 +432,7 @@ def Test_disassemble_lambda() instr) enddef -def AndOr(arg): string +def AndOr(arg: any): string if arg == 1 && arg != 2 || arg == 4 return 'yes' endif