diff options
| author | gingerBill <bill@gingerbill.org> | 2022-05-23 12:04:19 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-05-23 12:04:19 +0100 |
| commit | 3ec70c5517062f3d35822253b2072df696b0c55f (patch) | |
| tree | 12e5377283b627e246f77e19fed33220b06c0830 /src/parser.cpp | |
| parent | d9f293b2818b30ebe2d29180aa62c3ce432c4582 (diff) | |
Merge functionality of `#maybe` with the standard 'union' functionality
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index ab947774b..d19e249e5 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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) { |