Update core:odin for union #shared_nil

This commit is contained in:
gingerBill
2022-03-24 12:00:27 +00:00
parent 3f935bea25
commit 13cb894b30
3 changed files with 41 additions and 8 deletions
+8 -2
View File
@@ -708,13 +708,19 @@ Struct_Type :: struct {
name_count: int,
}
Union_Type_Kind :: enum u8 {
Normal,
maybe,
no_nil,
shared_nil,
}
Union_Type :: struct {
using node: Expr,
tok_pos: tokenizer.Pos,
poly_params: ^Field_List,
align: ^Expr,
is_maybe: bool,
is_no_nil: bool,
kind: Union_Type_Kind,
where_token: tokenizer.Token,
where_clauses: []^Expr,
variants: []^Expr,