Skip to content

Commit

Permalink
patch 8.2.2659: eval test fails because for loop on string works
Browse files Browse the repository at this point in the history
Problem:    Eval test fails because for loop on string works.
Solution:   Check looping over function reference fails.
  • Loading branch information
brammool committed Mar 26, 2021
1 parent 74e54fc commit c61cb8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/testdir/test_eval_stuff.vim
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2659,
/**/
2658,
/**/
Expand Down

0 comments on commit c61cb8b

Please sign in to comment.