April 05, 2016 [Issue 15877] New: [REG2.071beta] Some members are not visible by std.typecons.BlackHole | ||||
|---|---|---|---|---|
| ||||
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@puremagic.com Reporter: jiki@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 -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply