www.digitalmars.com         C & C++   DMDScript  

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


          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.

import std.typecons : BlackHole;

interface I {
    import std.array;

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

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