Member field of type nested struct must be initialized in constructor: Why?

Inkrementator anon at anon.org
Sun Oct 22 21:14:23 UTC 2023


On Sunday, 22 October 2023 at 21:02:32 UTC, Inkrementator wrote:
> Running the code with `rdmd -version=fix app.d` works, but 
> running `rdmd -version=fix app.d` produces:
> `Error: field `member` must be initialized in constructor, 
> because it is nested struct`

Sorry, obviously it should be:
Running the code with `rdmd -version=fix app.d` works, but 
running just `rdmd app.d` produces:
`Error: field `member` must be initialized in constructor, 
because it is nested struct`


More information about the Digitalmars-d-learn mailing list