abstract classes and interfaces
kyle
kbcomm at protonmail.com
Mon Sep 27 16:11:31 UTC 2021
I'm attempting Markdown for the first time so forgive me if that
doesn't go well. Consider the following:
```d
interface A
{
bool broken();
}
abstract class B : A
{
}
class C : B
{
}
void main()
{
import std.stdio;
C test = new C();
writeln(test);
}
```
DMD compiles this providing no notice that either B or C do not
implement interface A. Is this how things are supposed to work?
Thanks.
More information about the Digitalmars-d-learn
mailing list