Mercurial > vim
comparison src/eval.c @ 23332:cdb706d5c43d v8.2.2209
patch 8.2.2209: Vim9: return type of => lambda not parsed
Commit: https://github.com/vim/vim/commit/9e68c32563d8c9ffe1ac04ecd4ccd730af66b97c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 25 12:38:04 2020 +0100
patch 8.2.2209: Vim9: return type of => lambda not parsed
Problem: Vim9: return type of => lambda not parsed.
Solution: Parse and use the return type.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 25 Dec 2020 12:45:05 +0100 |
parents | 68df9697667a |
children | 9c5275b1c763 |
comparison
equal
deleted
inserted
replaced
23331:c5b1246b9557 | 23332:cdb706d5c43d |
---|---|
866 { | 866 { |
867 scriptitem_T *si = SCRIPT_ITEM(current_sctx.sc_sid); | 867 scriptitem_T *si = SCRIPT_ITEM(current_sctx.sc_sid); |
868 char_u *tp = skipwhite(p + 1); | 868 char_u *tp = skipwhite(p + 1); |
869 | 869 |
870 // parse the type after the name | 870 // parse the type after the name |
871 lp->ll_type = parse_type(&tp, &si->sn_type_list); | 871 lp->ll_type = parse_type(&tp, &si->sn_type_list, !quiet); |
872 if (lp->ll_type == NULL && !quiet) | |
873 return NULL; | |
872 lp->ll_name_end = tp; | 874 lp->ll_name_end = tp; |
873 } | 875 } |
874 } | 876 } |
875 } | 877 } |
876 | 878 |