vim-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.
c61cb8bfe1
This commit is contained in:
Jan Edmund Lazo
2021-03-26 18:55:10 -04:00
parent f0ace6d419
commit 31e2546cc9

View File

@@ -24,7 +24,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