Mercurial > vim
comparison src/proto/vim9type.pro @ 22202:7899b4e2880c v8.2.1650
patch 8.2.1650: Vim9: result of && and || expression is not bool in script
Commit: https://github.com/vim/vim/commit/c1ec0422e43720d2e96627605532ee9806c0789f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 9 22:27:58 2020 +0200
patch 8.2.1650: Vim9: result of && and || expression is not bool in script
Problem: Vim9: result of && and || expression cannot be assigned to a bool
at the script level.
Solution: Add the VAR_BOOL_OK flag. Convert to bool when needed.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 09 Sep 2020 22:30:04 +0200 |
parents | 2463b3d89ce2 |
children | 6b385c2b9ff5 |
comparison
equal
deleted
inserted
replaced
22201:11ef4208bffe | 22202:7899b4e2880c |
---|---|
4 type_T *get_list_type(type_T *member_type, garray_T *type_gap); | 4 type_T *get_list_type(type_T *member_type, garray_T *type_gap); |
5 type_T *get_dict_type(type_T *member_type, garray_T *type_gap); | 5 type_T *get_dict_type(type_T *member_type, garray_T *type_gap); |
6 type_T *alloc_func_type(type_T *ret_type, int argcount, garray_T *type_gap); | 6 type_T *alloc_func_type(type_T *ret_type, int argcount, garray_T *type_gap); |
7 type_T *get_func_type(type_T *ret_type, int argcount, garray_T *type_gap); | 7 type_T *get_func_type(type_T *ret_type, int argcount, garray_T *type_gap); |
8 int func_type_add_arg_types(type_T *functype, int argcount, garray_T *type_gap); | 8 int func_type_add_arg_types(type_T *functype, int argcount, garray_T *type_gap); |
9 int need_convert_to_bool(type_T *type, typval_T *tv); | |
9 type_T *typval2type(typval_T *tv, garray_T *type_gap); | 10 type_T *typval2type(typval_T *tv, garray_T *type_gap); |
10 type_T *typval2type_vimvar(typval_T *tv, garray_T *type_gap); | 11 type_T *typval2type_vimvar(typval_T *tv, garray_T *type_gap); |
11 int check_typval_type(type_T *expected, typval_T *actual_tv, int argidx); | 12 int check_typval_type(type_T *expected, typval_T *actual_tv, int argidx); |
12 void type_mismatch(type_T *expected, type_T *actual); | 13 void type_mismatch(type_T *expected, type_T *actual); |
13 void arg_type_mismatch(type_T *expected, type_T *actual, int argidx); | 14 void arg_type_mismatch(type_T *expected, type_T *actual, int argidx); |