view src/testdir/test10.in @ 33204:36aebbf8389f v9.0.1880

patch 9.0.1880: Vim9: Need more tests for inheritance Commit: https://github.com/vim/vim/commit/cf138d4ea5b7e4495abbc867f9bb8a6be6482762 Author: Ernie Rael <errael@raelity.com> Date: Wed Sep 6 20:45:03 2023 +0200 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>
author Christian Brabandt <cb@256bit.org>
date Wed, 06 Sep 2023 21:00:04 +0200
parents 9d7914012b82
children
line wrap: on
line source

Test that vim9script also works without the +eval feature.

STARTTEST
:/^START/+1,/^END/-1:w! Xvim9
:so Xvim9
ENDTEST

START
vim9script

if 1
  echo 'this is skipped without +eval'
endif

# colon required for a range
:$-1,$w! test.out
qa!
END

first line
last line