0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.2053: Vim9: lamba doesn't accept argument types

Problem:    Vim9: lamba doesn't accept argument types.
Solution:   Optionally accept argument types at the script level.
This commit is contained in:
Bram Moolenaar
2020-11-25 21:30:11 +01:00
parent 47a2abf0bc
commit c2ca935d26
3 changed files with 6 additions and 1 deletions

View File

@@ -3266,7 +3266,7 @@ eval7(
* Lambda: {arg, arg -> expr}
* Dictionary: {'key': val, 'key': val}
*/
case '{': ret = get_lambda_tv(arg, rettv, FALSE, evalarg);
case '{': ret = get_lambda_tv(arg, rettv, in_vim9script(), evalarg);
if (ret == NOTDONE)
ret = eval_dict(arg, rettv, evalarg, FALSE);
break;