Merge functionality of #maybe with the standard 'union' functionality

This commit is contained in:
gingerBill
2022-05-23 12:04:19 +01:00
parent d9f293b281
commit 3ec70c5517
11 changed files with 27 additions and 25 deletions

View File

@@ -2529,6 +2529,7 @@ Ast *parse_operand(AstFile *f, bool lhs) {
if (maybe) {
union_kind = UnionType_maybe;
syntax_error(f->curr_token, "#maybe functionality has now been merged with standard 'union' functionality");
} else if (no_nil) {
union_kind = UnionType_no_nil;
} else if (shared_nil) {