mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.3278: Vim9: error when adding 1 to float
Problem: Vim9: error when adding 1 to float. Solution: Accept t_number_bool. (closes #8687)
This commit is contained in:
@@ -223,6 +223,12 @@ def Test_assignment()
|
||||
g:inc_counter += 1
|
||||
assert_equal(2, g:inc_counter)
|
||||
|
||||
if has('float')
|
||||
var f: float
|
||||
f += 1
|
||||
assert_equal(1.0, f)
|
||||
endif
|
||||
|
||||
$SOME_ENV_VAR ..= 'more'
|
||||
assert_equal('somemore', $SOME_ENV_VAR)
|
||||
CheckDefFailure(['$SOME_ENV_VAR += "more"'], 'E1051:')
|
||||
|
Reference in New Issue
Block a user