Mercurial > vim
comparison src/eval.c @ 25455:e7c02cbe701f v8.2.3264
patch 8.2.3264: Vim9: assign test fails
Commit: https://github.com/vim/vim/commit/f24f51d03035379cf3e5b2dccf489a40bc4ca92a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 1 12:01:49 2021 +0200
patch 8.2.3264: Vim9: assign test fails
Problem: Vim9: assign test fails.
Solution: Add missing change.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Aug 2021 12:15:03 +0200 |
parents | effe5f2b4d01 |
children | 7144d2ffc86b |
comparison
equal
deleted
inserted
replaced
25454:e547441b00e4 | 25455:e7c02cbe701f |
---|---|
1513 varnumber_T n; | 1513 varnumber_T n; |
1514 char_u numbuf[NUMBUFLEN]; | 1514 char_u numbuf[NUMBUFLEN]; |
1515 char_u *s; | 1515 char_u *s; |
1516 int failed = FALSE; | 1516 int failed = FALSE; |
1517 | 1517 |
1518 // Can't do anything with a Funcref, Dict, v:true on the right. | 1518 // Can't do anything with a Funcref or Dict on the right. |
1519 // v:true and friends only work with "..=". | |
1519 if (tv2->v_type != VAR_FUNC && tv2->v_type != VAR_DICT | 1520 if (tv2->v_type != VAR_FUNC && tv2->v_type != VAR_DICT |
1520 && tv2->v_type != VAR_BOOL && tv2->v_type != VAR_SPECIAL) | 1521 && ((tv2->v_type != VAR_BOOL && tv2->v_type != VAR_SPECIAL) |
1522 || *op == '.')) | |
1521 { | 1523 { |
1522 switch (tv1->v_type) | 1524 switch (tv1->v_type) |
1523 { | 1525 { |
1524 case VAR_UNKNOWN: | 1526 case VAR_UNKNOWN: |
1525 case VAR_ANY: | 1527 case VAR_ANY: |