mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
vim-patch:8.2.3135: Vim9: builtin function arguments not checked at compile time
Problem: Vim9: builtin function arguments not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes vim/vim#8539)
5b73992d8f
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -613,15 +613,15 @@ describe('eval', function()
|
||||
Executing call setreg(1, 2, 3, 4)
|
||||
Vim(call):E118: Too many arguments for function: setreg
|
||||
Executing call setreg([], 2)
|
||||
Vim(call):E730: using List as a String
|
||||
Vim(call):E730: Using a List as a String
|
||||
Executing call setreg(1, 2, [])
|
||||
Vim(call):E730: using List as a String
|
||||
Vim(call):E730: Using a List as a String
|
||||
Executing call setreg("/", ["1", "2"])
|
||||
Vim(call):E883: search pattern and expression register may not contain two or more lines
|
||||
Executing call setreg("=", ["1", "2"])
|
||||
Vim(call):E883: search pattern and expression register may not contain two or more lines
|
||||
Executing call setreg(1, ["", "", [], ""])
|
||||
Vim(call):E730: using List as a String]])
|
||||
Vim(call):E730: Using a List as a String]])
|
||||
end)
|
||||
|
||||
it('function name not starting with a capital', function()
|
||||
|
||||
Reference in New Issue
Block a user