diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-30 15:33:54 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-30 15:33:54 -0500 |
| commit | 357c9faa40e97e28aba25d7cf576cf4343f744dd (patch) | |
| tree | 2696f4e1e0a5c2d8963ce263855e7592305ea0a9 /typecheck.c | |
| parent | e38ecde989fe378c49a61d6975784ccfb703cfee (diff) | |
Fix for update assignments
Diffstat (limited to 'typecheck.c')
| -rw-r--r-- | typecheck.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/typecheck.c b/typecheck.c index 82c1f84a..eb186dff 100644 --- a/typecheck.c +++ b/typecheck.c @@ -1292,6 +1292,7 @@ PUREFUNC bool can_be_mutated(env_t *env, ast_t *ast) { switch (ast->tag) { case Var: return true; + case InlineCCode: return true; case FieldAccess: { auto access = Match(ast, FieldAccess); type_t *fielded_type = get_type(env, access->fielded); |
