www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15826] New: Insufficient locations of deprecation message in

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 puremagic.com
          Reporter: jiki 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.

--
Mar 24 2016