https://issues.dlang.org/show_bug.cgi?id=24482
basile-z <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Hardware|x86_64 |All OS|Linux |All --- Comment #1 from basile-z <[email protected]> --- slightly minimized ``` struct Array(E) {} struct Enum(T) {T t;} // <-- here T size is not known yet alias NodeArray = Array!(Enum!(Object)); struct Object {NodeArray values;} ``` IMO the error message is correct, for example ``` struct Array(E) {} struct Enum(T) {T t;} alias NodeArray = Array!(Enum!(Object*)); struct Object {NodeArray values;} ``` compiles. However that's a typical case of "how forward references are handled in D" is under-specified. --
