[Issue 10688] New: Misleading error message when attempting a "private override"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 21 02:18:32 PDT 2013
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: nobody at puremagic.com
ReportedBy: Marco.Leise at gmx.de
--- Comment #0 from Marco Leise <Marco.Leise at 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: -------
More information about the Digitalmars-d-bugs
mailing list