method returning child, doesn't overrides declared method returning parent
Jonathan M Davis
jmdavisProg at gmx.com
Tue Aug 30 02:44:50 PDT 2011
On Tuesday, August 30, 2011 12:42:04 Mariusz Gliwiński wrote:
> Jonathan M Davis wrote:
> > On Tuesday, August 30, 2011 08:57:53 Mariusz Gliwiński wrote:
> >>[...]
> >>
> >> <code>
> >> interface Interface
> >> {
> >> void method(Interface);
> >> }
> >> class Class : Interface
> >> {
> >> void method(Class) {}
> >> }
> >>
> >> void main() {}
> >> </code>
> >
> > This particular example is not a bug. [...]
>
> You're absolutely right, it's not symetric. Now i have to think a bit
> because i highly relied on this. I'm sorry for taking Your time.
Just so long as you learn, it's not a waste of my time.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list