patch 8.2.1615: Vim9: cannot pass "true" to searchdecl()
Problem: Vim9: cannot pass "true" to searchdecl().
Solution: use tv_get_bool_chk(). (closes #6881)
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim
index 6aa9f36..24377b2 100644
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -1547,6 +1547,10 @@
bwipe!
enddef
+def Test_searchdecl()
+ assert_equal(1, searchdecl('blah', true, true))
+enddef
+
def Fibonacci(n: number): number
if n < 2
return n