[Issue 17387] static struct this(ref) not pure

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 12 01:35:59 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17387

--- Comment #2 from Nick Treleaven <nick at geany.org> ---
Yes, thanks. What I was confused by was actually when the struct is defined
inside the unittest with the static keyword - pure is not inferred. Non-static
nested struct inference works, it seemed weird that adding static prevents
inference. But obviously the compiler treats it the same as the code in comment
0.

--


More information about the Digitalmars-d-bugs mailing list