Bug 15826 – Insufficient locations of deprecation message in use of std.typecons.AutoImplement

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-03-24T11:28:00Z
Last change time
2016-08-09T09:58:19Z
Keywords
diagnostic
Assigned to
nobody
Creator
jiki

Comments

Comment #0 by jiki — 2016-03-24T11:28:31Z
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.
Comment #1 by jiki — 2016-03-24T11:31:04Z
I mean that it needs the location inside of user code.
Comment #2 by code — 2016-08-09T09:58:19Z
*** This issue has been marked as a duplicate of issue 15877 ***