0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.0627: "const" and "final" both make the type a constant

Problem:    "const" and "final" both make the type a constant. (Daniel
            Steinberg)
Solution:   Only have "const" make the type a constant.
This commit is contained in:
Bram Moolenaar
2022-09-30 11:04:50 +01:00
parent b152b6a40f
commit 6586a01514
6 changed files with 36 additions and 11 deletions

View File

@@ -697,7 +697,9 @@ typedef struct {
int lv_loop_depth; // depth for variable inside a loop or -1
int lv_loop_idx; // index of first variable inside a loop or -1
int lv_from_outer; // nesting level, using ctx_outer scope
int lv_const; // when TRUE cannot be assigned to
int lv_const; // ASSIGN_VAR (can be assigned to),
// ASSIGN_FINAL (no assignment) or ASSIGN_CONST
// (value cannot be changed)
int lv_arg; // when TRUE this is an argument
} lvar_T;