1
0
forked from aniani/vim

patch 9.1.1285: Vim9: no error message for missing method after "super."

Problem:  Vim9: no error message for missing method after "super."
Solution: output an error message, add a few more tests
          (Yegappan Lakshmanan).

closes: #17070

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2025-04-07 21:09:18 +02:00
committed by Christian Brabandt
parent b87620466c
commit 5ce1e4ad4a
5 changed files with 104 additions and 0 deletions

View File

@@ -404,7 +404,10 @@ compile_class_object_index(cctx_T *cctx, char_u **arg, type_T *type)
char_u *name = *arg;
char_u *name_end = find_name_end(name, NULL, NULL, FNE_CHECK_START);
if (name_end == name)
{
emsg(_(e_missing_name_after_dot));
return FAIL;
}
size_t len = name_end - name;
if (*name_end == '(')