aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-12-17 10:22:38 +0000
committerGinger Bill <bill@gingerbill.org>2016-12-17 10:23:28 +0000
commit625b98eac4919992a74f3712377c98ccdf11b067 (patch)
treeab31d4cec9672421fbdc8ca4a1f6253cddf44862 /code
parentd4457e9fa4cfb3a62beaf30e72bffcdea6a0c52b (diff)
Fix issue with printing invalid IR for nested unions
(GitHub #4)
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 {
+ }
+};