diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-25 22:37:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-25 22:37:48 +0200 |
commit | 2e0866128b6266829a7f38733d5188bc4ec68745 (patch) | |
tree | 3140508ba16b6457477c953036bcd3499e679548 /src/testdir/test_eval_stuff.vim | |
parent | b9fc192f928b484c8809fb985ef334d7a2bb5a09 (diff) | |
download | vim-git-2e0866128b6266829a7f38733d5188bc4ec68745.tar.gz |
patch 8.2.1524: no longer get an error for string concatenation with floatv8.2.1524
Problem: No longer get an error for string concatenation with float.
(Tsuyoshi Cho)
Solution: Only convert float for Vim9 script. (closes #6787)
Diffstat (limited to 'src/testdir/test_eval_stuff.vim')
-rw-r--r-- | src/testdir/test_eval_stuff.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_eval_stuff.vim b/src/testdir/test_eval_stuff.vim index 02e7e14fd..1490ffbc5 100644 --- a/src/testdir/test_eval_stuff.vim +++ b/src/testdir/test_eval_stuff.vim @@ -135,6 +135,12 @@ func Test_string_concatenation() let a = 'a' let a..=b call assert_equal('ab', a) + + if has('float') + let a = 'A' + let b = 1.234 + call assert_fails('echo a .. b', 'E806:') + endif endfunc " Test fix for issue #4507 |