diff options
Diffstat (limited to 'typecheck.c')
| -rw-r--r-- | typecheck.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/typecheck.c b/typecheck.c index 933f1f90..5d74a3cd 100644 --- a/typecheck.c +++ b/typecheck.c @@ -845,6 +845,7 @@ type_t *get_type(env_t *env, ast_t *ast) type_t *nonnull = Match(self_value_t, OptionalType)->type; if (streq(call->name, "or_else")) return nonnull; else if (streq(call->name, "or_fail")) return nonnull; + else if (streq(call->name, "or_exit")) return nonnull; code_err(ast, "There is no '%s' method for optional %T values", call->name, nonnull); } default: { |
