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.
diff --git a/src/vim9.h b/src/vim9.h
index 176fc64..fe193b1 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -697,7 +697,9 @@
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;