diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-15 23:36:40 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-15 23:36:40 +0200 |
commit | a6e67e4f41386c3e6eab7e047671c6d32f6cb0dc (patch) | |
tree | e7434456fea959f5fda2059de5922f31a962bf46 /src/vim9compile.c | |
parent | 4457e1d98f78152311495b1aff6169383d330a75 (diff) | |
download | vim-git-8.2.0764.tar.gz |
patch 8.2.0764: Vim9: assigning to option not fully testedv8.2.0764
Problem: Vim9: assigning to option not fully tested.
Solution: Add more test cases. Allow using any type for assignment.
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index 4b294df29..416198a0c 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -3490,7 +3490,7 @@ compile_subscript( type_T **typep; // list index: list[123] - // list member: dict[key] + // dict member: dict[key] // TODO: blob index // TODO: more arguments // TODO: recognize list or dict at runtime @@ -4999,8 +4999,8 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx) goto theend; } } - else if (*p != '=' && check_type(member_type, stacktype, TRUE) - == FAIL) + else if (*p != '=' && need_type(stacktype, member_type, -1, + cctx) == FAIL) goto theend; } } |