You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type com.squareup.test.InjectClass may only contain one injected constructor. Found: [@Inject com.squareup.test.InjectClass, @Inject com.squareup.test.InjectClass]
KSP error
Type com.squareup.test.InjectClass may only contain one injected constructor. Found: [@Inject com.squareup.test.InjectClass(), @Inject com.squareup.test.InjectClass(String)]
Namely - the KSP error is better in this case as it disambiguates the constructors by their parameters with a fuller description.
A similar change can be seen with error reporting around multiple assisted factories.
The @AssistedFactory-annotated type should contain a single abstract, non-default method but found multiple: [com.squareup.test.AssistedServiceFactory.create, com.squareup.test.AssistedServiceFactory1.createParent]
KSP
The @AssistedFactory-annotated type should contain a single abstract, non-default method but found multiple: [com.squareup.test.AssistedServiceFactory1.createParent(String), com.squareup.test.AssistedServiceFactory.create(String)]
The text was updated successfully, but these errors were encountered:
(originally from here: #3991 (comment))
The error reported for multiple
@Inject
constructors in KSP is better, but also has a subtle message difference.Kapt error
KSP error
Namely - the KSP error is better in this case as it disambiguates the constructors by their parameters with a fuller description.
A similar change can be seen with error reporting around multiple assisted factories.
Kapt
KSP
The text was updated successfully, but these errors were encountered: