aboutsummaryrefslogtreecommitdiff
path: root/typecheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'typecheck.c')
-rw-r--r--typecheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/typecheck.c b/typecheck.c
index 8a601c69..86d66252 100644
--- a/typecheck.c
+++ b/typecheck.c
@@ -738,7 +738,7 @@ type_t *get_type(env_t *env, ast_t *ast)
case Return: case Stop: case Skip: case PrintStatement: {
return Type(AbortType);
}
- case Pass: return Type(VoidType);
+ case Pass: case Defer: return Type(VoidType);
case Length: return Type(IntType, .bits=64);
case Negative: {
ast_t *value = Match(ast, Negative)->value;