patch 8.2.0570: Vim9: no error when omitting type from argument
Problem: Vim9: no error when omitting type from argument.
Solution: Enforce specifying argument types.
diff --git a/src/testdir/test_vim9_disassemble.vim b/src/testdir/test_vim9_disassemble.vim
index bfbb472..f6de685 100644
--- a/src/testdir/test_vim9_disassemble.vim
+++ b/src/testdir/test_vim9_disassemble.vim
@@ -160,7 +160,7 @@
res)
enddef
-def FuncWithArg(arg)
+def FuncWithArg(arg: any)
echo arg
enddef
@@ -432,7 +432,7 @@
instr)
enddef
-def AndOr(arg): string
+def AndOr(arg: any): string
if arg == 1 && arg != 2 || arg == 4
return 'yes'
endif