diff src/testdir/test_vim9_func.vim @ 27756:60ac4228a73d v8.2.4404

patch 8.2.4404: Vim9: some code not covered by tests Commit: https://github.com/vim/vim/commit/cd1cda2f877aab5ec954e14bcba59076533529a4 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 16 21:48:25 2022 +0000 patch 8.2.4404: Vim9: some code not covered by tests Problem: Vim9: some code not covered by tests. Solution: Add a few specific test cases.
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Feb 2022 23:00:03 +0100
parents 2bd27d5ffbef
children 3196066c5795
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -3226,6 +3226,14 @@ def Test_partial_call()
   v9.CheckScriptFailure(lines, 'E1235:')
 enddef
 
+def Test_partial_double_nested()
+  var idx = 123
+  var Get = () => idx
+  var Ref = function(Get, [])
+  var RefRef = function(Ref, [])
+  assert_equal(123, RefRef())
+enddef
+
 " Using "idx" from a legacy global function does not work.
 " This caused a crash when called from legacy context.
 func Test_partial_call_fails()