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 bcb5afac..eb1f2427 100644 --- a/typecheck.c +++ b/typecheck.c @@ -122,7 +122,7 @@ void bind_statement(env_t *env, ast_t *statement) if (!type) code_err(statement, "I couldn't get this type"); type_t *constructor_t = Type(FunctionType, .args=Match(type, StructType)->fields, .ret=type); - set_binding(env, def->name, new(binding_t, .type=constructor_t)); + Table_str_set(env->globals, def->name, new(binding_t, .type=constructor_t)); break; } case EnumDef: { |
