Can you add Qualifier on a class or on the functio...
# dagger
r
Can you add Qualifier on a class or on the function where you bind an interface with it's implementation?
Copy code
@MyQualifier
@Singleton
class MyClass @Inject constructor() {}
or
Copy code
@Binds
@MyQualifier
abstract fun binds(it: Impl): Interface
1
w
Have you tried and it didn’t work?
r
It works! 🙇‍♂️ There was a compilation error (package name was missing in one file) and i thought it might be something to do with this, as dagger error was misleading!