]> granicus.if.org Git - vim/commitdiff
patch 8.2.2659: eval test fails because for loop on string works v8.2.2659
authorBram Moolenaar <Bram@vim.org>
Fri, 26 Mar 2021 19:56:45 +0000 (20:56 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 26 Mar 2021 19:56:45 +0000 (20:56 +0100)
Problem:    Eval test fails because for loop on string works.
Solution:   Check looping over function reference fails.

src/testdir/test_eval_stuff.vim
src/version.c

index 95f5b2497db0eb482edc34f907c2bcc70572263f..4549f4860817b4e6719fc97f3a66549a10a8d93e 100644 (file)
@@ -66,7 +66,7 @@ endfunc
 
 func Test_for_invalid()
   call assert_fails("for x in 99", 'E714:')
-  call assert_fails("for x in 'asdf'", 'E714:')
+  call assert_fails("for x in function('winnr')", 'E714:')
   call assert_fails("for x in {'a': 9}", 'E714:')
 
   if 0
index a7406d96d918418290364dab70e488fe1d532d71..373ec74b1e0cdac4bb9114f2abb3405e841d1221 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2659,
 /**/
     2658,
 /**/