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:
@@ -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 => {
|
||||
|
Reference in New Issue
Block a user