Problem: Vim9: no error for shadowing a script function.
Solution: Check for already defined items. (closes #6652)
enddef
END
CheckScriptFailure(lines, 'E1073:')
+
+ lines =<< trim END
+ vim9script
+ def Foo(): string
+ return 'foo'
+ enddef
+ def Func()
+ let Foo = {-> 'lambda'}
+ enddef
+ defcompile
+ END
+ CheckScriptFailure(lines, 'E1073:')
enddef
def Test_fixed_size_list()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1391,
/**/
1390,
/**/
semsg(_(e_unknown_var), name);
goto theend;
}
+ else if (check_defined(var_start, varlen, cctx) == FAIL)
+ goto theend;
}
}