patch 7.4.2134
Problem: No error for using function() badly.
Solution: Check for passing wrong function name. (Ken Takata)
diff --git a/src/eval.c b/src/eval.c
index 956f05c..cf2c771 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -7813,7 +7813,7 @@
/* Don't allow hiding a function. When "v" is not NULL we might be
* assigning another function to the same var, the type is checked
* below. */
- if (new_var && function_exists(name))
+ if (new_var && function_exists(name, FALSE))
{
EMSG2(_("E705: Variable name conflicts with existing function: %s"),
name);