patch 8.2.3194: 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, simplify some. (Yegappan
Lakshmanan, closes #8598)
diff --git a/src/diff.c b/src/diff.c
index 59dc658..a47259e 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -3294,7 +3294,7 @@
int col;
if (in_vim9script()
- && (check_for_string_or_number_arg(argvars,0) == FAIL
+ && (check_for_lnum_arg(argvars,0) == FAIL
|| check_for_number_arg(argvars, 1) == FAIL))
return;