changeset 24236:82d2c859eb0c v8.2.2659

patch 8.2.2659: eval test fails because for loop on string works Commit: https://github.com/vim/vim/commit/c61cb8bfe1ec2cc50e6edd195cae2a3cd93d6590 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 26 20:56:45 2021 +0100 patch 8.2.2659: eval test fails because for loop on string works Problem: Eval test fails because for loop on string works. Solution: Check looping over function reference fails.
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Mar 2021 21:00:03 +0100
parents 7190694157b0
children 3e21ce770d08
files src/testdir/test_eval_stuff.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_eval_stuff.vim
+++ b/src/testdir/test_eval_stuff.vim
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2659,
+/**/
     2658,
 /**/
     2657,