https://issues.dlang.org/show_bug.cgi?id=18267
RazvanN <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |WORKSFORME --- Comment #7 from RazvanN <[email protected]> --- @Atilla I have just tried your initial example and it compiles fine with the latest version of master. What I did: For the following files: ================================= // app.d void main() { import oops; } ================================= // oops.d <attached file> struct Location { string file; } struct JSONValue { union PayloadUnion { JSONValue[] array; } alias Payload = TaggedAlgebraic!PayloadUnion; Payload payload; Location location; alias payload this; } struct TaggedAlgebraic(U) .... ======================== Commands: % dmd -g -c oops.d % dmd -g -debug app.d oops.o I get a binary. So this seems to have been fixed. I am going to preemptively close as WORKSFORME, but please reopen if I'm missing something. --
