diff options
Diffstat (limited to 'typecheck.c')
| -rw-r--r-- | typecheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/typecheck.c b/typecheck.c index 942c981b..43be2b97 100644 --- a/typecheck.c +++ b/typecheck.c @@ -1347,7 +1347,7 @@ bool can_be_mutated(env_t *env, ast_t *ast) auto ptr = Match(indexed_type, PointerType); return !ptr->is_readonly; } - return false; + return can_be_mutated(env, index->indexed); } default: return false; } |
