diff options
Diffstat (limited to 'runtime/syntax/testdir/input/vim_ex_def_nested.vim')
-rw-r--r-- | runtime/syntax/testdir/input/vim_ex_def_nested.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/syntax/testdir/input/vim_ex_def_nested.vim b/runtime/syntax/testdir/input/vim_ex_def_nested.vim new file mode 100644 index 0000000000..008c41520a --- /dev/null +++ b/runtime/syntax/testdir/input/vim_ex_def_nested.vim @@ -0,0 +1,20 @@ +vim9script +# Vim9 :def command (nested) + +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() |