Mercurial > vim
comparison src/proto/vim9compile.pro @ 23996:c192411b27e8 v8.2.2540
patch 8.2.2540: Vim9: no error for using script var name for argument
Commit: https://github.com/vim/vim/commit/b4893b84507570f24af32597716ffb67fb0ef24e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 21 22:20:24 2021 +0100
patch 8.2.2540: Vim9: no error for using script var name for argument
Problem: Vim9: no error for using script var name for argument.
Solution: Check for this error. (closes https://github.com/vim/vim/issues/7868)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 21 Feb 2021 22:30:05 +0100 |
parents | e3720756acdc |
children | 308d29307910 |
comparison
equal
deleted
inserted
replaced
23995:ac050d89a914 | 23996:c192411b27e8 |
---|---|
1 /* vim9compile.c */ | 1 /* vim9compile.c */ |
2 int script_var_exists(char_u *name, size_t len, int vim9script, cctx_T *cctx); | |
2 int check_defined(char_u *p, size_t len, cctx_T *cctx); | 3 int check_defined(char_u *p, size_t len, cctx_T *cctx); |
3 int check_compare_types(exprtype_T type, typval_T *tv1, typval_T *tv2); | 4 int check_compare_types(exprtype_T type, typval_T *tv1, typval_T *tv2); |
4 int use_typecheck(type_T *actual, type_T *expected); | 5 int use_typecheck(type_T *actual, type_T *expected); |
5 int need_type(type_T *actual, type_T *expected, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const); | 6 int need_type(type_T *actual, type_T *expected, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const); |
6 int func_needs_compiling(ufunc_T *ufunc, int profile); | 7 int func_needs_compiling(ufunc_T *ufunc, int profile); |