mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2984: Vim9: test fails because of missing return statement
Problem: Vim9: Test fails because of missing return statement. Solution: When type is unknown set type to void.
This commit is contained in:
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2984,
|
||||||
/**/
|
/**/
|
||||||
2983,
|
2983,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -9596,7 +9596,9 @@ nextline:
|
|||||||
|
|
||||||
if (!cctx.ctx_had_return)
|
if (!cctx.ctx_had_return)
|
||||||
{
|
{
|
||||||
if (ufunc->uf_ret_type->tt_type != VAR_VOID)
|
if (ufunc->uf_ret_type->tt_type == VAR_UNKNOWN)
|
||||||
|
ufunc->uf_ret_type = &t_void;
|
||||||
|
else if (ufunc->uf_ret_type->tt_type != VAR_VOID)
|
||||||
{
|
{
|
||||||
emsg(_(e_missing_return_statement));
|
emsg(_(e_missing_return_statement));
|
||||||
goto erret;
|
goto erret;
|
||||||
|
Reference in New Issue
Block a user