comparison src/testdir/test_vim9_script.vim @ 26496:8861ece40b4b v8.2.3778

patch 8.2.3778: lambda debug test fails in some configurations Commit: https://github.com/vim/vim/commit/9537e37b1124a0584e5f2af10756baca78bc73a1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 10 21:05:53 2021 +0000 patch 8.2.3778: lambda debug test fails in some configurations Problem: Lambda debug test fails in some configurations. Solution: Check feature in a legacy function.
author Bram Moolenaar <Bram@vim.org>
date Fri, 10 Dec 2021 22:15:03 +0100
parents cd452f46085e
children 7821550ba3a8
comparison
equal deleted inserted replaced
26495:8043606c524a 26496:8861ece40b4b
4632 .. ' continued' 4632 .. ' continued'
4633 END 4633 END
4634 CheckDefExecAndScriptFailure(lines, 'some error continued', 1) 4634 CheckDefExecAndScriptFailure(lines, 'some error continued', 1)
4635 enddef 4635 enddef
4636 4636
4637 def Test_debug_with_lambda() 4637 func Test_debug_with_lambda()
4638 CheckRunVimInTerminal 4638 CheckRunVimInTerminal
4639 4639
4640 " call indirectly to avoid compilation error for missing functions
4641 call Run_Test_debug_with_lambda()
4642 endfunc
4643
4644 def Run_Test_debug_with_lambda()
4640 var lines =<< trim END 4645 var lines =<< trim END
4641 vim9script 4646 vim9script
4642 def Func() 4647 def Func()
4643 var n = 0 4648 var n = 0
4644 echo [0]->filter((_, v) => v == n) 4649 echo [0]->filter((_, v) => v == n)