diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 16:42:42 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 16:42:42 -0400 |
| commit | 835eb7e89627eea923bfd57bdacba7065c6b1d4c (patch) | |
| tree | 68fd9832252e728ccf0c7277a5a2f492e41c261c /typecheck.c | |
| parent | fb37b0ee4253651cab10b41cc2e1f536b17b26d4 (diff) | |
Add optional:or_exit(...)
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: { |
