diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-26 20:56:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-26 20:56:45 +0100 |
commit | c61cb8bfe1ec2cc50e6edd195cae2a3cd93d6590 (patch) | |
tree | 2471e1afd618cbc5a2c7cd648565c0ecbe7c3603 /src | |
parent | 74e54fcb447e5db32f9c2df34c0554bbecdccca2 (diff) |
patch 8.2.2659: eval test fails because for loop on string worksv8.2.2659
Problem: Eval test fails because for loop on string works.
Solution: Check looping over function reference fails.
Diffstat (limited to 'src')
-rw-r--r-- | src/testdir/test_eval_stuff.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/test_eval_stuff.vim b/src/testdir/test_eval_stuff.vim index 95f5b2497d..4549f48608 100644 --- 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 diff --git a/src/version.c b/src/version.c index a7406d96d9..373ec74b1e 100644 --- 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, |