diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-09 17:50:48 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-09 18:12:25 -0400 |
commit | 3fd9ffd36893cd82549956de6960282791573b87 (patch) | |
tree | be3b9dc9c6ef074a9775148e1b4778fa3f3c9d89 /src/nvim/testdir/test_autoload.vim | |
parent | bbbed9fc6613c5b69d4ed471ff60d31246c03e35 (diff) | |
download | rneovim-3fd9ffd36893cd82549956de6960282791573b87.tar.gz rneovim-3fd9ffd36893cd82549956de6960282791573b87.tar.bz2 rneovim-3fd9ffd36893cd82549956de6960282791573b87.zip |
vim-patch:8.0.1377: cannot call a dict function in autoloaded dict
Problem: Cannot call a dict function in autoloaded dict.
Solution: Call get_lval() passing the read-only flag.
https://github.com/vim/vim/commit/6e65d594aa33be11f6074f26e9ff81b52504c62b
Diffstat (limited to 'src/nvim/testdir/test_autoload.vim')
-rw-r--r-- | src/nvim/testdir/test_autoload.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_autoload.vim b/src/nvim/testdir/test_autoload.vim new file mode 100644 index 0000000000..a92851f655 --- /dev/null +++ b/src/nvim/testdir/test_autoload.vim @@ -0,0 +1,11 @@ +" Tests for autoload + +set runtimepath=./sautest + +func! Test_autoload_dict_func() + let g:loaded_foo_vim = 0 + let g:called_foo_bar_echo = 0 + call g:foo#bar.echo() + call assert_equal(1, g:loaded_foo_vim) + call assert_equal(1, g:called_foo_bar_echo) +endfunc |