mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-14 18:02:22 -07:00
625b98eac4
(GitHub #4)
15 lines
143 B
Odin
15 lines
143 B
Odin
Test1 :: type union {
|
|
A: int;
|
|
B: int;
|
|
};
|
|
|
|
Test :: type struct {
|
|
a: Test1;
|
|
};
|
|
|
|
main :: proc() {
|
|
test: Test;
|
|
match type x : ^test.a {
|
|
}
|
|
};
|