If a class included in a component with @ScopeA depends on a binding with @ScopeB, then a compilation error is thrown
ComponentA scoped with @ScopeA may not reference bindings with different scopes:
@ScopeB class a.b.ClassWithScopeB
This is useful in the case where ClassWithScopeB has the wrong scope annotation, but it gives no help in discovering the dependency chain which is causing ClassWithScopeB to be included in ComponentA in the first place. In a large component graph this can be non-trivial
If a class included in a component with @ScopeA depends on a binding with @ScopeB, then a compilation error is thrown
This is useful in the case where
ClassWithScopeB
has the wrong scope annotation, but it gives no help in discovering the dependency chain which is causingClassWithScopeB
to be included inComponentA
in the first place. In a large component graph this can be non-trivial