diff options
Diffstat (limited to 'src/testdir/test_vim9_script.vim')
-rw-r--r-- | src/testdir/test_vim9_script.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index 71cef1ee9..54864587f 100644 --- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -2003,6 +2003,19 @@ def Test_for_skipped_block() assert_equal([3, 4], result) enddef DefFalse() + + def BuildDiagrams() + var diagrams: list<any> + if false + var max = 0 + for v in diagrams + var l = 3 + if max < l | max = l | endif + v->add(l) + endfor + endif + enddef + BuildDiagrams() END v9.CheckDefAndScriptSuccess(lines) enddef |