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

Implementation must actually implement interface mentioned in forType #7

Closed
sergejsha opened this issue Mar 20, 2018 · 0 comments · Fixed by #14
Closed

Implementation must actually implement interface mentioned in forType #7

sergejsha opened this issue Mar 20, 2018 · 0 comments · Fixed by #14
Assignees
Labels
enhancement New feature or request

Comments

@sergejsha
Copy link
Owner

@Implementation(forType = TypeA.class)
TypeAImpl implements TypeB { }

Current behavior. Factory gets generated, but it does not compile because TypeAImpl does not actually implement TypeA interface.

Expected behavior. Magnet should not allow such configuration and gracefully fail with a clear error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant