Merge pull request #1802 from odin-lang/remove-maybe-tag

Merge functionality of `#maybe` with the standard 'union' functionality
This commit is contained in:
gingerBill
2022-05-23 12:35:06 +01:00
committed by GitHub
12 changed files with 31 additions and 27 deletions

View File

@@ -10065,7 +10065,6 @@ gbString write_expr_to_string(gbString str, Ast *node, bool shorthand) {
str = gb_string_appendc(str, ") ");
}
switch (st->kind) {
case UnionType_maybe: str = gb_string_appendc(str, "#maybe "); break;
case UnionType_no_nil: str = gb_string_appendc(str, "#no_nil "); break;
case UnionType_shared_nil: str = gb_string_appendc(str, "#shared_nil "); break;
}