]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1909: Vim9: problem calling class method from other class v9.0.1909
authorYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 18 Sep 2023 17:56:49 +0000 (19:56 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 18 Sep 2023 17:56:49 +0000 (19:56 +0200)
commit00cd18222ee1551c65228e9556c158624507fc7a
tree2686d05c81b58786e4f0c5b7f284f9e6d9158f8b
parentd25021cf036c63d539f845a1ee05b03ea21d61ff
patch 9.0.1909: Vim9: problem calling class method from other class

Problem:  Vim9: problem calling class method from other class
Solution: Fix this problem, fix readonly object access, update error
          messages.

Calling a class method from another method without the class name prefix
doesn't work properly.

A readonly object variable is modifiable outside the class using a
nested object assignment.

Remove the unused E1338 error message.

Update error messages.

closes: #13116

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
runtime/doc/tags
runtime/doc/vim9class.txt
src/errors.h
src/eval.c
src/proto/vim9class.pro
src/testdir/test_vim9_class.vim
src/version.c
src/vim9class.c
src/vim9compile.c
src/vim9expr.c
src/vim9instr.c