I have a simple class as below
class MainString(val msg: String)
I want to inject with different argument to it, so I use the @Named<
@Named<
Annotation work slightly different on kotlin. look this doc
You have to annotate the field as:
@Inject @field:Named("Two") lateinit var stringOne: MainString