Add test coverage for the case where a subcomponent has to refer to a module installed onto a parent component.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=112981895
diff --git a/compiler/src/it/functional-tests/src/main/java/test/subcomponent/MultibindingSubcomponents.java b/compiler/src/it/functional-tests/src/main/java/test/subcomponent/MultibindingSubcomponents.java
index 6120964..1df73db 100644
--- a/compiler/src/it/functional-tests/src/main/java/test/subcomponent/MultibindingSubcomponents.java
+++ b/compiler/src/it/functional-tests/src/main/java/test/subcomponent/MultibindingSubcomponents.java
@@ -108,8 +108,10 @@
return BoundInParentAndChild.IN_PARENT;
}
+ /* This is not static because otherwise we have no tests that cover the case where a
+ * subcomponent uses a module instance installed onto a parent component. */
@Provides(type = SET)
- static RequiresMultibindings<BoundInParentAndChild>
+ RequiresMultibindings<BoundInParentAndChild>
requiresMultibindingsInParentAndChildElement(
RequiresMultibindings<BoundInParentAndChild> requiresMultibindingsInParentAndChild) {
return requiresMultibindingsInParentAndChild;