[Issue 2525] override of function from abstract base class's interface
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 6 21:37:51 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=2525
--- Comment #3 from Maksim Zholudev <maximzms at gmail.com> 2013-05-06 21:37:50 PDT ---
I think `override` keyword is useful to mark the methods that are supposed to
be declared elsewhere.
In the following example I'm also (technically) implementing:
--------------------
abstract class A
{
void foo();
}
class B : A
{
void foo () {}
}
--------------------
test.d(7): Deprecation: overriding base class function without using override
attribute is deprecated (test.B.foo overrides test.A.foo)
--------------------
--
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