mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-23 22:25:00 -07:00
+12
-4
@@ -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 {
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user