Mercurial > vim
diff src/testdir/test_vim9_expr.vim @ 25265:1d6ff96306fc v8.2.3169
patch 8.2.3169: Vim9: cannot handle nested inline function
Commit: https://github.com/vim/vim/commit/5245beb37cb52991a745644c20d7ca1b0138ef2c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 15 22:03:50 2021 +0200
patch 8.2.3169: Vim9: cannot handle nested inline function
Problem: Vim9: cannot handle nested inline function.
Solution: Check for nested inline function. (closes https://github.com/vim/vim/issues/8575)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 15 Jul 2021 22:15:03 +0200 |
parents | 205a0126ac2d |
children | 55c85c3a43a0 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -2082,7 +2082,8 @@ def Test_expr7_lambda_block() var Func = (nr: number): int => { return nr END - CheckDefAndScriptFailure(lines, 'E1171', 1) # line nr is function start + CheckDefFailure(lines, 'E1171', 0) # line nr is function start + CheckScriptFailure(['vim9script'] + lines, 'E1171', 2) lines =<< trim END var Func = (nr: number): int => {