Implement Interface Using Super

Jonathan Levi catanscout at gmail.com
Sun Jan 27 05:37:57 UTC 2019


This works in LDC but not DMD?

```
class A : B, I {
     alias i = typeof(super).i;
}
class B {
     void i() {
         writeln("i");
     }
}
interface I {
     void i();
}
```

Is this a bug in DMD or in LDC?  How can I get this effect 
correctly?


More information about the Digitalmars-d-learn mailing list