mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2308: Vim9: no error when assigning lambda to funcref
Problem: Vim9: no error when assigning lambda to funcref without return value. Solution: Default return value to "any". (closes #7629)
This commit is contained in:
@@ -668,7 +668,7 @@ get_lambda_tv(
|
||||
goto errret;
|
||||
}
|
||||
else
|
||||
fp->uf_ret_type = &t_unknown;
|
||||
fp->uf_ret_type = &t_any;
|
||||
}
|
||||
|
||||
fp->uf_lines = newlines;
|
||||
|
Reference in New Issue
Block a user