Fix issue #829 "Compiler crashes when declaring maps with procedure"

Inits `o->value` in `check_expr_base_internal()` so doesn't accidentally
  use last (the proc lit was being set to that of previous string)
Adds test to "tests/issues" and changes CI to use new "run" shells
This commit is contained in:
gitlost
2022-03-23 12:56:37 +00:00
parent 0446d9721b
commit 10c5825715
5 changed files with 72 additions and 3 deletions

View File

@@ -9000,6 +9000,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
o->mode = Addressing_Invalid;
o->type = t_invalid;
o->value = {ExactValue_Invalid};
switch (node->kind) {
default: