shared interfaces
anonymous via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Feb 15 06:59:19 PST 2015
On Sunday, 15 February 2015 at 12:34:50 UTC, Andrey Derzhavin
wrote:
> On Sunday, 15 February 2015 at 11:30:46 UTC, anonymous wrote:
[...]
>> ----
>> interface IA
>> {
>> void fnA();
>> }
>> shared interface IC : IA
>> {
>> void fnC();
>> }
>> class D : IC
>> {
>> override void fnC() shared {}
>> override void fnA() {}
>> }
>> ----
> Try to compile your example, it is wrong.
Hm? Works for me. What error do you get, or what doesn't work?
Which compiler are you using, which version?
More information about the Digitalmars-d-learn
mailing list