[Issue 2501] New: member function marked as final override ignores override requirements
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 9 09:26:50 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2501
Summary: member function marked as final override ignores
override requirements
Product: D
Version: 1.037
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: schveiguy at yahoo.com
example:
class C
{
final override void foo(){}
}
This should fail to compile, because foo is not overriding any virtual
function. A final function is allowed to override a virtual function to stop
overriding in derived classes, and to help performance.
Also happens on D 2.019
--
More information about the Digitalmars-d-bugs
mailing list