diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-24 21:23:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-24 21:23:06 +0100 |
commit | 24c77a1e3a2ad510582116229462b482d69b4b8e (patch) | |
tree | 4a9dcaa87719c7690ebdabf09f7014644a27248b /src/testdir/test_partial.vim | |
parent | d4caf5c16a9f1c9477d426e58d8d3dc47ab5f066 (diff) | |
download | vim-git-24c77a1e3a2ad510582116229462b482d69b4b8e.tar.gz |
patch 7.4.1644v7.4.1644
Problem: Using string() on a partial that exists in the dictionary it binds
results in an error. (Nikolai Pavlov)
Solution: Make string() not fail on a recursively nested structure. (Ken
Takta)
Diffstat (limited to 'src/testdir/test_partial.vim')
-rw-r--r-- | src/testdir/test_partial.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_partial.vim b/src/testdir/test_partial.vim index f67bb41dd..75cc49251 100644 --- a/src/testdir/test_partial.vim +++ b/src/testdir/test_partial.vim @@ -180,3 +180,16 @@ func Test_func_unref() unlet obj call assert_false(exists('*{' . funcnumber . '}')) endfunc + +func Test_tostring() + let d = {} + let d.d = d + function d.test3() + echo 42 + endfunction + try + call string(d.test3) + catch + call assert_true(v:false, v:exception) + endtry +endfunc |