← Back to index
|
Original Bugzilla link
Bug 7683 – the attribute has not been correctly inferred in either the constructor or nested function.
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-11T05:15:00Z
Last change time
2014-01-05T00:23:23Z
Assigned to
nobody
Creator
Koichi.Takio
Comments
Comment #0
by Koichi.Takio — 2012-03-11T05:15:36Z
this code doesn't work! ---------- void main() { foo(0).bar(0); } auto foo(T)(T n) { struct FooInner { public: Bar bar(U)(U m) { return Bar(0); } } return FooInner(); } struct Bar { this(int n) { } } ----------
Comment #1
by verylonglogin.reg — 2014-01-05T00:23:23Z
The title is incorrect, it has nothing to do with attributes. The error was because of some fixed IFTI bug.