0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3264: Vim9: assign test fails

Problem:    Vim9: assign test fails.
Solution:   Add missing change.
This commit is contained in:
Bram Moolenaar
2021-08-01 12:01:49 +02:00
parent f5d52c90e0
commit f24f51d030
2 changed files with 6 additions and 2 deletions

View File

@@ -1515,9 +1515,11 @@ tv_op(typval_T *tv1, typval_T *tv2, char_u *op)
char_u *s;
int failed = FALSE;
// Can't do anything with a Funcref, Dict, v:true on the right.
// Can't do anything with a Funcref or Dict on the right.
// v:true and friends only work with "..=".
if (tv2->v_type != VAR_FUNC && tv2->v_type != VAR_DICT
&& tv2->v_type != VAR_BOOL && tv2->v_type != VAR_SPECIAL)
&& ((tv2->v_type != VAR_BOOL && tv2->v_type != VAR_SPECIAL)
|| *op == '.'))
{
switch (tv1->v_type)
{