http://d.puremagic.com/issues/show_bug.cgi?id=4679
Summary: Problem with final & override Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2010-08-19 06:22:41 PDT --- This D2 program compiles and runs with DMD 2.048 with no errors: import std.c.stdio: puts; class Base { this() { foo(); } private void foo() { puts("Base.foo"); } // called } class Derived : Base { private override void foo() { // not called puts("Derived.foo"); super.foo(); } } void main() { auto d = new Derived(); } Output: Base.foo If Base.foo() is private then it's final. Then what is Derived.foo() overriding? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------