Bug 14622 – documented unit test that follows an undocumented symbol silently ignored

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-05-26T18:02:06Z
Last change time
2024-12-13T18:43:02Z
Keywords
ddoc, diagnostic, pull
Assigned to
No Owner
Creator
Steven Schveighoffer
Moved to GitHub: dmd#18994 →

Comments

Comment #0 by schveiguy — 2015-05-26T18:02:06Z
Consider this: /// document foo void foo(int) {...} void foo(string) {...} /// unittest { // use foo like this! foo(1); } The unit test is not included in the documentation, because foo(string) was not ditto'd. But clearly, the unit test was supposed to be part of the documentation. I propose we make a documented unit test that isn't attached to any symbol a warning when generating documentation.
Comment #1 by dlang-bot — 2022-10-05T14:51:19Z
@ntrel created dlang/dmd pull request #14527 "Fix Issue 14622 - documented unit test following undocumented symbol" fixing this issue: - Fix Issue 14622 - documented unit test following undocumented symbol https://github.com/dlang/dmd/pull/14527
Comment #2 by robert.schadek — 2024-12-13T18:43:02Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18994 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB