]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1883: Vim9: Calling an interface method using a child object fails v9.0.1883
authorYegappan Lakshmanan <yegappan@yahoo.com>
Fri, 8 Sep 2023 17:12:03 +0000 (19:12 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 8 Sep 2023 17:12:03 +0000 (19:12 +0200)
commitcc0bcf4c9f4133750f5ee99c685ba995a1b840fd
tree838c9185d9184bcb249b10275883e7a89f8fc639
parent11d2aeeca4cf191b3f25b36603dcd32167eac8a0
patch 9.0.1883: Vim9: Calling an interface method using a child object fails

Problem:  Vim9: Calling an interface method using a child object fails
Solution: Search methods of parent class

When a class implementing an interface is extended by another class and
a child class instance is passed to a function that accepts the
interface, calling an interface method doesn't work properly.

closes: #13053

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