mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-12 02:40:41 -04:00
Merge functionality of #maybe with the standard 'union' functionality
This commit is contained in:
1 parent
d9f293b281
commit
3ec70c5517
11 files changed
+27
-25
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user