aboutsummaryrefslogtreecommitdiff
path: root/typecheck.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-17 14:49:03 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-17 14:49:03 -0500
commit4231789b71bb42c4ab04e125f98fe5eb3cf030b6 (patch)
treec73aafaeef60b77555cfd25ccd30c618e431d52a /typecheck.c
parentc1ae79ac3c320923363994fb88f4cc2fa13317ce (diff)
Rename datetime -> moment
Diffstat (limited to 'typecheck.c')
-rw-r--r--typecheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/typecheck.c b/typecheck.c
index 915e2b5c..b3d96d37 100644
--- a/typecheck.c
+++ b/typecheck.c
@@ -704,7 +704,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 == BigIntType || t->tag == NumType
- || t->tag == ByteType || t->tag == TextType || t->tag == CStringType || t->tag == DateTimeType)
+ || t->tag == ByteType || t->tag == TextType || t->tag == CStringType || t->tag == MomentType)
return t; // Constructor
code_err(call->fn, "This is not a type that has a constructor");
}
@@ -1204,7 +1204,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 Moment: return Type(MomentType);
case Unknown: code_err(ast, "I can't figure out the type of: %W", ast);
}
#pragma GCC diagnostic pop