]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1880: Vim9: Need more tests for inheritance v9.0.1880
authorErnie Rael <errael@raelity.com>
Wed, 6 Sep 2023 18:45:03 +0000 (20:45 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 6 Sep 2023 18:45:03 +0000 (20:45 +0200)
commitcf138d4ea5b7e4495abbc867f9bb8a6be6482762
tree816ed9323e5126d85e15149234ec76fb17bfb553
parentf7ac0ef5098856bedca26e7073594a407c05636f
patch 9.0.1880: Vim9: Need more tests for inheritance

Problem:  Vim9: Need more tests for inheritance
Solution: Add access tests and fixes.

`inside_class` fix from yegappan. `object_index_from_itf_index` fix
access of member on class extending class implementing interface.

Based on tests from Vim9: Class/Object member variable access control #12979

closes: #13032
related: #12979

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
src/testdir/test_vim9_class.vim
src/version.c
src/vim9class.c