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) { } } ----------
The title is incorrect, it has nothing to do with attributes. The error was because of some fixed IFTI bug.