From ec0606091bdcc8a8473ba909fb8ca2d873ce4a59 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 30 Sep 2024 13:55:55 -0400 Subject: Add datetime literal and tests --- typecheck.c | 1 + 1 file changed, 1 insertion(+) (limited to 'typecheck.c') diff --git a/typecheck.c b/typecheck.c index fa7ca19c..0e29dbbf 100644 --- a/typecheck.c +++ b/typecheck.c @@ -1271,6 +1271,7 @@ type_t *get_type(env_t *env, ast_t *ast) type_ast_t *type_ast = inline_code->type_ast; return type_ast ? parse_type_ast(env, type_ast) : Type(VoidType); } + case DateTime: return Type(DateTimeType); case Unknown: code_err(ast, "I can't figure out the type of: %W", ast); } code_err(ast, "I can't figure out the type of: %W", ast); -- cgit v1.2.3