[Issue 15877] New: [REG2.071beta] Some members are not visible by std.typecons.BlackHole

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Apr 4 19:49:17 PDT 2016


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

          Issue ID: 15877
           Summary: [REG2.071beta] Some members are not visible by
                    std.typecons.BlackHole
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: jiki at red.email.ne.jp

This came from the 2.071 change of the import rules.

I don't know whether a dmd or phobos issue.
And it is a deprecation massage, so we can suppress.

It also relates to Issue 15826.

CODE:
import std.typecons;

void main(string[] args)
{
    auto a = new BlackHole!A;
    a.method();
}

interface A {
    abstract void method();

    import std.stdio; // default is private
    private alias a = int;
    private void ft(R)(R range) { } // non-template is visible
}

OUTPUT:
phobos\std\traits.d(3677): Deprecation: test.A.std is not visible from module
traits
phobos\std\traits.d(3677): Deprecation: test.A.a is not visible from module
traits
phobos\std\traits.d(3677): Deprecation: test.A.ft(R)(R range) is not visible
from module traits

--


More information about the Digitalmars-d-bugs mailing list