summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_autoload.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-04 23:04:39 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-04 23:04:39 +0200
commitfcfe1a9b8950b8b211ab3b24d84b17c6847ea43f (patch)
treedaeeffb4dd96cdd7744597d9623d222404edd8e2 /src/testdir/test_autoload.vim
parent7a4ea1df2f85e00286c49db1145e3a38b35557f4 (diff)
patch 8.1.1816: cannot use a user defined function as a methodv8.1.1816
Problem: Cannot use a user defined function as a method. Solution: Pass the base as the first argument to the user defined function after "->". (partly by FUJIWARA Takuya)
Diffstat (limited to 'src/testdir/test_autoload.vim')
-rw-r--r--src/testdir/test_autoload.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_autoload.vim b/src/testdir/test_autoload.vim
index 7396c227c9..b8c4fa251f 100644
--- a/src/testdir/test_autoload.vim
+++ b/src/testdir/test_autoload.vim
@@ -8,6 +8,8 @@ func Test_autoload_dict_func()
call g:foo#bar.echo()
call assert_equal(1, g:loaded_foo_vim)
call assert_equal(1, g:called_foo_bar_echo)
+
+ eval 'bar'->g:foo#addFoo()->assert_equal('barfoo')
endfunc
func Test_source_autoload()