0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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.
This commit is contained in:
Bram Moolenaar 2021-03-26 20:56:45 +01:00
parent 74e54fcb44
commit c61cb8bfe1
2 changed files with 3 additions and 1 deletions

View 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

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2659,
/**/
2658,
/**/