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

Dependency Injection: Diagnostic for @Inject with more than one constructor. #174

Closed
3 tasks
Tracked by #16
ananya2801 opened this issue Oct 6, 2021 · 0 comments · Fixed by #200
Closed
3 tasks
Tracked by #16

Dependency Injection: Diagnostic for @Inject with more than one constructor. #174

ananya2801 opened this issue Oct 6, 2021 · 0 comments · Fixed by #200
Assignees
Labels
diagnostic Diagnostic item

Comments

@ananya2801
Copy link
Contributor

ananya2801 commented Oct 6, 2021

Spec

Check:

  • @Inject can apply to at most one constructor per class.

Potential Solution:

  • Ask the user which constructor they want to use @Inject with.
  • Remove @Inject annotation from the other constructor(s).

Related to #153

@kathrynkodama kathrynkodama added the diagnostic Diagnostic item label Oct 6, 2021
kathrynkodama pushed a commit that referenced this issue Nov 8, 2021
…ltiple constructors (#200)

* multiple injected constructors

* error appears for all constructors

* fix formatting, remove license

* fix more formatting issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diagnostic Diagnostic item
Projects
None yet
2 participants