March 17, 2018
https://issues.dlang.org/show_bug.cgi?id=18623

          Issue ID: 18623
           Summary: Documented unittest should not allow private symbol
                    access
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: nick@geany.org

private int i;

///
unittest
{
    i++;
}

`i` is not visible outside the module, so it should not appear in public documentation about how to use the module.

--