https://issues.dlang.org/show_bug.cgi?id=19919
RazvanN <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from RazvanN <[email protected]> --- The spec: "Unions are by default initialized to whatever the Initializer for the first field is, and if none is supplied, to the default initializer for the first field's type" [1] It seems that the resolution to this would be to issue an error (that would state that the initialization is not used) if we were to stick to the spec. Or we could modify the spec and allow a single explicit initializer per union. [1] https://dlang.org/spec/struct.html#default_union_init --
