mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 12:28:18 +00:00
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)
2e0866128b
Vim9script is N/A.
Required for v8.2.2949.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -230,6 +230,12 @@ func Test_string_concatenation()
|
|||||||
let a = 'a'
|
let a = 'a'
|
||||||
let a..=b
|
let a..=b
|
||||||
call assert_equal('ab', a)
|
call assert_equal('ab', a)
|
||||||
|
|
||||||
|
if has('float')
|
||||||
|
let a = 'A'
|
||||||
|
let b = 1.234
|
||||||
|
call assert_fails('echo a .. b', 'E806:')
|
||||||
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Test fix for issue #4507
|
" Test fix for issue #4507
|
||||||
|
Reference in New Issue
Block a user