[Issue 15826] New: Insufficient locations of deprecation message in use of std.typecons.AutoImplement

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Mar 24 04:28:31 PDT 2016


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

          Issue ID: 15826
           Summary: Insufficient locations of deprecation message in use
                    of std.typecons.AutoImplement
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: jiki at red.email.ne.jp

This came from 2.071's strict change.

CODE:
import std.typecons : BlackHole;

interface I {
    import std.array;
}

void main(string[] args)
{
    auto o = new class BlackHole!I {
    };
}

RESULT:
std\traits.d(3677): Deprecation: test.I.std is not visible from module traits


Putting the import out of the interface, the error will be gone.
However, the location to be fixed is Insufficient, so it is difficult to fix.

--


More information about the Digitalmars-d-bugs mailing list