diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-30 11:04:50 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-30 11:04:50 +0100 |
commit | 6586a015144f15a979d573a79d91e700e4b3009f (patch) | |
tree | e276ff392ab6f428c169b2fb0b8646643109bd44 /src/vim9.h | |
parent | b152b6a40f729ed81a25d2fa541a4e73e201bec4 (diff) | |
download | vim-git-6586a015144f15a979d573a79d91e700e4b3009f.tar.gz |
patch 9.0.0627: "const" and "final" both make the type a constantv9.0.0627
Problem: "const" and "final" both make the type a constant. (Daniel
Steinberg)
Solution: Only have "const" make the type a constant.
Diffstat (limited to 'src/vim9.h')
-rw-r--r-- | src/vim9.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vim9.h b/src/vim9.h index 176fc642a..fe193b1d6 100644 --- a/src/vim9.h +++ b/src/vim9.h @@ -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; |