forked from aniani/vim
patch 8.2.3215: Vim9: argument types are not checked at compile time
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. Sort the argument lists.
(Yegappan Lakshmanan, closes #8626)
This commit is contained in:
committed by
Bram Moolenaar
parent
7d60384a00
commit
5bca906b30
@@ -1172,10 +1172,10 @@ endfunc
|
||||
func Test_gui_drop_files()
|
||||
CheckFeature drop_file
|
||||
|
||||
call assert_fails('call test_gui_drop_files(1, 1, 1, 0)', 'E474:')
|
||||
call assert_fails('call test_gui_drop_files(["x"], "", 1, 0)', 'E474:')
|
||||
call assert_fails('call test_gui_drop_files(["x"], 1, "", 0)', 'E474:')
|
||||
call assert_fails('call test_gui_drop_files(["x"], 1, 1, "")', 'E474:')
|
||||
call assert_fails('call test_gui_drop_files(1, 1, 1, 0)', 'E1211:')
|
||||
call assert_fails('call test_gui_drop_files(["x"], "", 1, 0)', 'E1210:')
|
||||
call assert_fails('call test_gui_drop_files(["x"], 1, "", 0)', 'E1210:')
|
||||
call assert_fails('call test_gui_drop_files(["x"], 1, 1, "")', 'E1210:')
|
||||
|
||||
%bw!
|
||||
%argdelete
|
||||
|
||||
Reference in New Issue
Block a user