aboutsummaryrefslogtreecommitdiff
path: root/src/typecheck.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-21 13:38:27 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-21 13:38:27 -0400
commit7204970fccd5f1903c38b97c9c0778892c44fdfe (patch)
treedb3e4afa89834c9387ac686f49ab5f777f63ed28 /src/typecheck.c
parente419a527a1212123946e53adaaea01df0c5605c3 (diff)
Got inlne enums working in most places
Diffstat (limited to 'src/typecheck.c')
-rw-r--r--src/typecheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/typecheck.c b/src/typecheck.c
index 86876c30..806cf1bf 100644
--- a/src/typecheck.c
+++ b/src/typecheck.c
@@ -146,7 +146,7 @@ type_t *parse_type_ast(env_t *env, type_ast_t *ast) {
.next = fields);
}
REVERSE_LIST(fields);
- const char *struct_name = String(enum_name, "$$", tag_ast->name);
+ const char *struct_name = String(enum_name, "$", tag_ast->name);
env_t *struct_env = namespace_env(env, struct_name);
type_t *tag_type = Type(StructType, .name = tag_ast->name, .fields = fields, .env = struct_env);
tags = new (tag_t, .name = tag_ast->name, .tag_value = tag_value, .type = tag_type, .next = tags);