mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
3c4890d1ef
commit
c690f10194
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user