aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin16
1 files changed, 12 insertions, 4 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 6f6610260..d75250c6b 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -1,6 +1,14 @@
-#import "fmt.odin";
-#import "sync.odin";
+Test1 :: type union {
+ A: int;
+ B: int;
+};
+
+Test :: type struct {
+ a: Test1;
+};
main :: proc() {
- fmt.println("Hellope");
-}
+ test: Test;
+ match type x : ^test.a {
+ }
+};