0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

patch 8.2.3169: Vim9: cannot handle nested inline function

Problem:    Vim9: cannot handle nested inline function.
Solution:   Check for nested inline function. (closes #8575)
This commit is contained in:
Bram Moolenaar
2021-07-15 22:03:50 +02:00
parent 378697ac58
commit 5245beb37c
4 changed files with 47 additions and 6 deletions

View File

@@ -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 => {