[Issue 3934] Some untidy attributes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 19 09:11:48 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3934



--- Comment #9 from bearophile_hugs at eml.cc 2010-08-19 09:11:44 PDT ---
This D2 program compiles and runs with DMD 2.048 with no errors, but I think
the compiler has to flag this usage of the 'private final' attributes as
incorrect:


import std.c.stdio: puts;
class Base {
     private final ~this() { puts("Base.~this"); }
}
class Derived : Base {
    private final ~this() { puts("Derived.~this"); }
}
void main() {
    new Derived();
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list