Mercurial > vim
comparison src/vim9class.c @ 33936:bdd408288d95 v9.0.2164
patch 9.0.2164: Vim9: can use type a func arg/return value
Commit: https://github.com/vim/vim/commit/b077b58809f6bd1078f409829cc1964b8475f9fc
Author: Ernie Rael <errael@raelity.com>
Date: Thu Dec 14 20:11:44 2023 +0100
patch 9.0.2164: Vim9: can use type a func arg/return value
Problem: Vim9: can use type a func arg/return value
Solution: Check if using type as function argument or return value
closes: #13675
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 14 Dec 2023 20:15:10 +0100 |
parents | 34c5f47e98ba |
children | 3bba09502b8d |
comparison
equal
deleted
inserted
replaced
33935:f4019f32b695 | 33936:bdd408288d95 |
---|---|
2340 semsg(_(e_cannot_access_protected_method_str), fp->uf_name); | 2340 semsg(_(e_cannot_access_protected_method_str), fp->uf_name); |
2341 return FAIL; | 2341 return FAIL; |
2342 } | 2342 } |
2343 | 2343 |
2344 char_u *argp = name_end; | 2344 char_u *argp = name_end; |
2345 int ret = get_func_arguments(&argp, evalarg, 0, argvars, &argcount); | 2345 int ret = get_func_arguments(&argp, evalarg, 0, argvars, &argcount, FALSE); |
2346 if (ret == FAIL) | 2346 if (ret == FAIL) |
2347 return FAIL; | 2347 return FAIL; |
2348 | 2348 |
2349 funcexe_T funcexe; | 2349 funcexe_T funcexe; |
2350 CLEAR_FIELD(funcexe); | 2350 CLEAR_FIELD(funcexe); |