aboutsummaryrefslogtreecommitdiff
path: root/typecheck.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-30 13:55:55 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-30 13:55:55 -0400
commitec0606091bdcc8a8473ba909fb8ca2d873ce4a59 (patch)
tree4b490161bf0a0b91e24c7af6bb1e84d439dd5951 /typecheck.c
parent45425b77e40da59552cc800313aa80aac88430d4 (diff)
Add datetime literal and tests
Diffstat (limited to 'typecheck.c')
-rw-r--r--typecheck.c1
1 files changed, 1 insertions, 0 deletions
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);