aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 0b682e2..f61386b 100644
--- a/parse.c
+++ b/parse.c
@@ -205,6 +205,7 @@ AstNode* parse_primary_expr(Parser* p) {
} else if (t->kind == TokenKind_literal_str) {
e = ast_new(AstNodeKind_str_expr);
e->node_idx = register_str_literal(p, string_to_cstr(&t->raw));
+ e->ty = type_new_static_string(t->raw.len);
return e;
} else if (t->kind == TokenKind_paren_l) {
e = parse_expr(p);