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.
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim
index f0c4c0d..09f80e9 100644
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -467,6 +467,10 @@
MyVarargs('one', 'two', 'three')->assert_equal('one,two,three')
enddef
+def Test_call_white_space()
+ CheckDefAndScriptFailure2(["call Test ('text')"], 'E476:', 'E1068:')
+enddef
+
def MyDefaultArgs(name = 'string'): string
return name
enddef