Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inheritance #5

Closed
belka-ew opened this issue Dec 14, 2016 · 1 comment
Closed

Inheritance #5

belka-ew opened this issue Dec 14, 2016 · 1 comment
Labels
bug

Comments

@belka-ew
Copy link
Contributor

@belka-ew belka-ew commented Dec 14, 2016

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

@belka-ew belka-ew added the bug label Dec 14, 2016
duselbaer added a commit that referenced this issue Jan 13, 2017
Suggested fix for #5 (Inheritance)
@belka-ew

This comment has been minimized.

Copy link
Contributor Author

@belka-ew belka-ew commented Jan 15, 2017

Fixed by #8

@belka-ew belka-ew closed this Jan 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.