Mercurial > vim
comparison src/proto/vim9execute.pro @ 22860:53acb89ec9f2 v8.2.1977
patch 8.2.1977: Vim9: error for using a string in a condition is confusing
Commit: https://github.com/vim/vim/commit/ea2d407f9c144bb634c59017944e4930ed7f80a2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 12 12:08:51 2020 +0100
patch 8.2.1977: Vim9: error for using a string in a condition is confusing
Problem: Vim9: error for using a string in a condition is confusing.
Solution: Give a more specific error. Also adjust the compile time type
checking for || and &&.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 12 Nov 2020 12:15:04 +0100 |
parents | 7d6ba4204f66 |
children | 112fa621b127 |
comparison
equal
deleted
inserted
replaced
22859:757858b35433 | 22860:53acb89ec9f2 |
---|---|
2 void to_string_error(vartype_T vartype); | 2 void to_string_error(vartype_T vartype); |
3 void funcstack_check_refcount(funcstack_T *funcstack); | 3 void funcstack_check_refcount(funcstack_T *funcstack); |
4 int call_def_function(ufunc_T *ufunc, int argc_arg, typval_T *argv, partial_T *partial, typval_T *rettv); | 4 int call_def_function(ufunc_T *ufunc, int argc_arg, typval_T *argv, partial_T *partial, typval_T *rettv); |
5 void ex_disassemble(exarg_T *eap); | 5 void ex_disassemble(exarg_T *eap); |
6 int tv2bool(typval_T *tv); | 6 int tv2bool(typval_T *tv); |
7 void emsg_using_string_as(typval_T *tv, int as_number); | |
7 int check_not_string(typval_T *tv); | 8 int check_not_string(typval_T *tv); |
8 /* vim: set ft=c : */ | 9 /* vim: set ft=c : */ |