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:
Sean Dewar 2021-09-11 21:40:10 +01:00 committed by zeertzjq
parent 3c4890d1ef
commit c690f10194

View File

@ -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