http://d.puremagic.com/issues/show_bug.cgi?id=10688
Summary: Misleading error message when attempting a "private override" Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: marco.le...@gmx.de --- Comment #0 from Marco Leise <marco.le...@gmx.de> 2013-07-21 02:18:29 PDT --- class Bar: Foo { private: override void func() {} } This doesn't compile and print "cannot override a non-virtual function". It took me a while to realize that the problem (in a larger class) was not in the base class, but in the attributes of the override. What about error messages like: "cannot reduce visibility of override" or "overrides must not be private" -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------