aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-09-11 21:40:10 +0100
committerzeertzjq <zeertzjq@outlook.com>2023-06-12 13:27:04 +0800
commitc690f1019477e4c9a63e22e7c68bf1f65cc69fc7 (patch)
tree895f014260be859ae2197e4bd0938bc4cbe51ebe
parent3c4890d1efe7c23c0bff7bc4532f19cf03c94e04 (diff)
downloadrneovim-c690f1019477e4c9a63e22e7c68bf1f65cc69fc7.tar.gz
rneovim-c690f1019477e4c9a63e22e7c68bf1f65cc69fc7.tar.bz2
rneovim-c690f1019477e4c9a63e22e7c68bf1f65cc69fc7.zip
vim-patch:8.2.1524: no longer get an error for string concatenation with float
Problem: No longer get an error for string concatenation with float. (Tsuyoshi Cho) Solution: Only convert float for Vim9 script. (closes vim/vim#6787) https://github.com/vim/vim/commit/2e0866128b6266829a7f38733d5188bc4ec68745 Vim9script is N/A. Required for v8.2.2949. Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--test/old/testdir/test_eval_stuff.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/old/testdir/test_eval_stuff.vim b/test/old/testdir/test_eval_stuff.vim
index 20eb873326..ed45eef36c 100644
--- a/test/old/testdir/test_eval_stuff.vim
+++ b/test/old/testdir/test_eval_stuff.vim
@@ -230,6 +230,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