[Issue 2196] Link errors with an abstract class's method implementing an interface
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 23 03:12:16 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2196
gide at nwawudu.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #2 from gide at nwawudu.com 2009-04-23 05:12 -------
(In reply to comment #1)
> I'm not sure if it is a bug, this is a correct behaviour to me.
> If you mark your method as abstract it means that there is no body,
> child class should provide an implementation.
The following compiles correctly, the original code should not link.
interface A {
void foo ();
}
abstract class B : A
{
abstract void foo ();
}
void main() {}
--
More information about the Digitalmars-d-bugs
mailing list