[Issue 18488] test_extractor misses version(unittest) blocks, causing `Deprecation: X is not visible from Y`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 15 08:34:25 UTC 2018


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

--- Comment #3 from Seb <greensunny12 at gmail.com> ---
> 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).

--


More information about the Digitalmars-d-bugs mailing list