Add the following to test_vim9_class.vim::Text_defer_with_object
It fails with line 32: Expected 'entered-child/called/exited-child' but got 'entered-child/called/exited-base'
lines =<< trim END
vim9script
class BaseWithEE
def Enter()
g:result ..= "entered-base/"
enddef
def Exit()
g:result ..= "exited-base"
enddef
endclass
class CWithEE extends BaseWithEE
def Enter()
g:result ..= "entered-child/"
enddef
def Exit()
g:result ..= "exited-child"
enddef
endclass
def With(ee: BaseWithEE, F: func)
ee.Enter()
defer ee.Exit()
F()
enddef
g:result = ''
var obj = CWithEE.new()
obj->With(() => {
g:result ..= "called/"
})
assert_equal('entered-child/called/exited-child', g:result)
unlet g:result
END
v9.CheckScriptSuccess(lines)
No failure
9.0.1261
ubuntu
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Closed #11910 as completed via 313e472.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.