From a1d18fd4225f67275ea4173532969e4ddf55b39f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 18 May 2024 14:38:41 -0400 Subject: Add C string type --- typecheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'typecheck.c') diff --git a/typecheck.c b/typecheck.c index 937a0bff..d60a84ea 100644 --- a/typecheck.c +++ b/typecheck.c @@ -617,7 +617,7 @@ type_t *get_type(env_t *env, ast_t *ast) if (fn_type_t->tag == TypeInfoType) { type_t *t = Match(fn_type_t, TypeInfoType)->type; - if (t->tag == StructType || t->tag == IntType || t->tag == NumType) + if (t->tag == StructType || t->tag == IntType || t->tag == NumType || t->tag == TextType || t->tag == CStringType) return t; // Constructor code_err(call->fn, "This is not a type that has a constructor"); } -- cgit v1.2.3