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
@@ -135,7 +135,6 @@ Type_Info_Union :: struct {
|
||||
|
||||
custom_align: bool,
|
||||
no_nil: bool,
|
||||
maybe: bool,
|
||||
shared_nil: bool,
|
||||
}
|
||||
Type_Info_Enum :: struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package runtime
|
||||
import "core:intrinsics"
|
||||
|
||||
@builtin
|
||||
Maybe :: union($T: typeid) #maybe {T}
|
||||
Maybe :: union($T: typeid) {T}
|
||||
|
||||
|
||||
@builtin
|
||||
|
||||
Reference in new issue
Block a user