-
Notifications
You must be signed in to change notification settings - Fork 3.1k
inherited providers for qualified dependencies not found by compiler when checking for completeness #188
Comments
Hmmm . . . I'm tempted to forbid subclassing modules altogether. Composition instead of inheritance, right? |
I'm inclined as well, though there are some legacy migration cases we're |
We'll want to do a few changes to the code then:
|
+1 personally I'll have short term work when subclassing is removed, but I On Sunday, March 24, 2013, Christian Edward Gruber wrote:
|
If a base module class has a provider method for a qualified dependency, the derived module class is flagged with a compiler error if it has an entry point that depends on the qualified dependency. This gist shows the problem: https://gist.github.com/adennie/5199473.
The workaround is to override the qualified provider in the derived class and delegate to the base class' provider.
This problem doesn't arise if the provider and the dependency don't use qualifiers.
The text was updated successfully, but these errors were encountered: