aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/compile.c b/compile.c
index 85321000..4b8bdfeb 100644
--- a/compile.c
+++ b/compile.c
@@ -1689,8 +1689,8 @@ static bool string_literal_is_all_ascii(CORD literal)
CORD compile(env_t *env, ast_t *ast)
{
switch (ast->tag) {
- case Nil: {
- type_t *t = parse_type_ast(env, Match(ast, Nil)->type);
+ case Null: {
+ type_t *t = parse_type_ast(env, Match(ast, Null)->type);
if (t == THREAD_TYPE) return "NULL";
switch (t->tag) {
@@ -1720,7 +1720,7 @@ CORD compile(env_t *env, ast_t *ast)
env_t *enum_env = Match(t, EnumType)->env;
return CORD_all("((", compile_type(t), "){", namespace_prefix(enum_env->libname, enum_env->namespace), "null})");
}
- default: code_err(ast, "Nil isn't implemented for this type: %T", t);
+ default: code_err(ast, "Null isn't implemented for this type: %T", t);
}
}
case Bool: return Match(ast, Bool)->b ? "yes" : "no";