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

--- Comment #3 from Seb <[email protected]> ---
> this seems not true anymore, so `version(unittest)` is ok again, see:

Well, it's an open problem - it was reverted because with -deps ALL unittest
blocks are compiled (even the ones in Phobos).
See also:

https://github.com/dlang/phobos/pull/6202
https://github.com/dlang/phobos/pull/6159

Anyhow, as mentioned in my earlier comment we purposely don't include the
version(unittest) symbols in the publicly documented tests as they aren't
available for the user neither and wouldn't run on run.dlang.io or other places
and we want to prevent such errors (people have rightfully complained a lot
about examples from the docs not working locally in the past).

--

Reply via email to