[Issue 559] Final has no effect on methods

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 21 16:00:17 PST 2006


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





------- Comment #1 from brunodomedeiros+bugz at gmail.com  2006-11-21 18:00 -------
>This compiles fine, although "Functions marked as final may not be overridden
>in a derived class".

And it does not override, due to the presence of 'final'. It creates a new
method lineage, similar to C# 'new' in a method declaration, thus 'final' does
have an effect on methods. If it's the best behavior that's another story, but
it's not against the spec I believe.


-- 




More information about the Digitalmars-d-bugs mailing list