Mercurial > vim
comparison src/testdir/test_vim9_func.vim @ 25737:d923be9d752d v8.2.3404
patch 8.2.3404: Vim9: no error for white space before "("
Commit: https://github.com/vim/vim/commit/01dd6c3732a2f352d598e36336a65049614d7508
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 5 16:36:23 2021 +0200
patch 8.2.3404: Vim9: no error for white space before "("
Problem: Vim9: no error for white space before "(".
Solution: Give an error, like in a compiled function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Sep 2021 16:45:03 +0200 |
parents | 99fbffe75217 |
children | 9edad9a8cca6 |
comparison
equal
deleted
inserted
replaced
25736:1f8bdc0eb4b3 | 25737:d923be9d752d |
---|---|
463 | 463 |
464 def Test_call_varargs() | 464 def Test_call_varargs() |
465 MyVarargs('one')->assert_equal('one') | 465 MyVarargs('one')->assert_equal('one') |
466 MyVarargs('one', 'two')->assert_equal('one,two') | 466 MyVarargs('one', 'two')->assert_equal('one,two') |
467 MyVarargs('one', 'two', 'three')->assert_equal('one,two,three') | 467 MyVarargs('one', 'two', 'three')->assert_equal('one,two,three') |
468 enddef | |
469 | |
470 def Test_call_white_space() | |
471 CheckDefAndScriptFailure2(["call Test ('text')"], 'E476:', 'E1068:') | |
468 enddef | 472 enddef |
469 | 473 |
470 def MyDefaultArgs(name = 'string'): string | 474 def MyDefaultArgs(name = 'string'): string |
471 return name | 475 return name |
472 enddef | 476 enddef |