Fix issue with printing invalid IR for nested unions

(GitHub #4)
This commit is contained in:
Ginger Bill
2016-12-17 10:22:38 +00:00
parent d4457e9fa4
commit 625b98eac4
4 changed files with 20 additions and 14 deletions
+12 -4
View File
@@ -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 {
}
};