mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.2.2642: Vim9: no clear error for wrong inline function
Problem: Vim9: no clear error for wrong inline function. Solution: Check for something following the "{".
This commit is contained in:
@@ -1963,6 +1963,11 @@ def Test_expr7_lambda_block()
|
||||
assert_equal(['no', 'yes', 'no'], dll)
|
||||
END
|
||||
CheckDefAndScriptSuccess(lines)
|
||||
|
||||
lines =<< trim END
|
||||
map([1, 2], (k, v) => { redrawt })
|
||||
END
|
||||
CheckDefAndScriptFailure(lines, 'E488')
|
||||
enddef
|
||||
|
||||
def NewLambdaWithComments(): func
|
||||
|
Reference in New Issue
Block a user