funkwerk/accessors

Inheritance

Closed this issue · 1 comments

unittest
{
    class A
    {
        @Read
        string foo_;

        mixin(GenerateFieldAccessors);
    }

    class B : A
    {
        @Read
        string bar_;

        mixin(GenerateFieldAccessors);
    }
}

src/accessors.d-mixin-686(687): Error: mixin accessors.__unittestL671_23.B.GenerateFieldAccessorMethods!() GenerateFieldAccessorMethods isn't a template
src/accessors.d-mixin-686-mixin-688(688): Error: function accessors.__unittestL671_23.B.foo cannot override final function accessors.__unittestL671_23.A.foo

Fixed by #8