← Back to index
|
Original Bugzilla link
Bug 7172 – nested class with additional attributes is not supported
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-12-27T06:14:00Z
Last change time
2012-10-08T04:45:07Z
Keywords
patch, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2011-12-27T06:14:33Z
Sample code. void main() { // abstract class AbstractC{} // static assert(!__traits(compiles, { new AbstractC(); })); final class FinalC{} static assert(!__traits(compiles, { class D : FinalC{} })); scope class ScopeC{} static assert(!__traits(compiles, { auto sc = new ScopeC(); })); static assert( __traits(compiles, { scope sc = new ScopeC(); })); // synchronized class SyncC{ void f(){} } // static assert(SyncC.f.mangleof[$-13..$] == "5SyncC1fMOFZv"); // @safe class SCx{ void f(){} } // @trusted class SCy{ void f(){} } // @system class SCz{ void f(){} } // static assert(SCx.f.mangleof[$-12..$] == "3SCx1fMFNfZv"); // Nf: // static assert(SCy.f.mangleof[$-12..$] == "3SCy1fMFNeZv"); // Ne: // static assert(SCz.f.mangleof[$-10..$] == "3SCz1fMFZv"); // (none) } Commented out lines are not supported.
Comment #1
by k.hara.pg — 2011-12-27T06:47:54Z
https://github.com/D-Programming-Language/dmd/pull/562
Comment #2
by github-bugzilla — 2012-10-08T04:44:18Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/273d60ed59ff93b8c1fc0dc7f672b18dfdc59dec
Issue 7172 - nested class with additional attributes is not supported
https://github.com/D-Programming-Language/dmd/commit/381eec8240dcc8eeacd9d81285b77f4324f32090
Merge pull request #562 from 9rnsr/fix6534 Issue 6534 & 7065 & 7172 - Parser improvements for inner aggregates
Comment #3
by yebblies — 2012-10-08T04:45:07Z
https://github.com/D-Programming-Language/dmd/commit/381eec8240dcc8eeacd9d81285b77f4324f32090