1
0
Fork 0
vim/runtime/syntax/testdir/input/vim_ex_def_nested.vim
Daniel Baumann 0985b09abd
Adding upstream version 2:9.1.1230.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 11:09:31 +02:00

21 lines
296 B
VimL

vim9script
# Vim9 :def command (nested)
# VIM_TEST_SETUP hi link vim9This Todo
class Test
const name: string
def new()
def Name(): string
function GiveName()
return "any"
endfunction
return GiveName()
enddef
this.name = Name()
enddef
endclass
echo Test.new()