mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2481: Vim9: confusing error when variable arguments have default
Problem: Vim9: confusing error when variable arguments have a default value. Solution: Give a specific error message. (closes #7793)
This commit is contained in:
@@ -241,6 +241,11 @@ get_function_args(
|
||||
skip);
|
||||
if (p == arg)
|
||||
break;
|
||||
if (*skipwhite(p) == '=')
|
||||
{
|
||||
emsg(_(e_cannot_use_default_for_variable_arguments));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user