Created
July 14, 2018 12:42
-
-
Save guliash/6b12ee68493810e8729536c6dda8aaa6 to your computer and use it in GitHub Desktop.
Not failing when same scopes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.guliash.dagger; | |
import dagger.Component; | |
import javax.inject.Scope; | |
public class Main { | |
public static void main(String[] args) { | |
} | |
} | |
@Scope | |
@interface ScopeA {} | |
@ScopeA | |
@Component | |
interface ComponentA extends MaskComponentA { | |
} | |
interface MaskComponentA { | |
} | |
@Scope | |
@interface ScopeB {} | |
interface MaskComponentB { | |
} | |
@ScopeB | |
@Component | |
interface ComponentB extends MaskComponentB { | |
} | |
@Scope | |
@interface ScopeC {} | |
@ScopeA | |
@Component(dependencies = {MaskComponentA.class, MaskComponentB.class}) | |
interface ComponentC {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment