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: [email protected]
Reporter: [email protected]
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.
--