Mercurial > vim
diff src/testdir/test_method.vim @ 17763:117c7795a979 v8.1.1878
patch 8.1.1878: negative float before method not parsed correctly
commit https://github.com/vim/vim/commit/9cfe8f6e68de4bfb5942d84f4465de914a747b3f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 17 21:04:16 2019 +0200
patch 8.1.1878: negative float before method not parsed correctly
Problem: Negative float before method not parsed correctly.
Solution: Apply "!" and "-" in front of expression before using ->.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Aug 2019 21:15:03 +0200 |
parents | 1726c2db81bf |
children | f71ee7b04f0b |
line wrap: on
line diff
--- a/src/testdir/test_method.vim +++ b/src/testdir/test_method.vim @@ -115,6 +115,11 @@ func Test_method_funcref() delfunc Concat endfunc +func Test_method_float() + eval 1.234->string()->assert_equal('1.234') + eval -1.234->string()->assert_equal('-1.234') +endfunc + func Test_method_syntax() eval [1, 2, 3] ->sort( ) eval [1, 2, 3]