mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
Rewrote DtoIndexStruct/Class , the old implementation were way too complex for what we really need now - since the DotVar changes.
5 lines
177 B
D
5 lines
177 B
D
struct Foo { int a, b, c; union Data { } Data data; }
|
|
struct Bar { int a, b; }
|
|
struct Baz { int a; union { Foo foo; Bar bar; } }
|
|
void test() { Baz baz; if (baz.bar.a) return; }
|