如何注入与Dagger 2科特林授权财产?

我需要( @Named )注入dagger2到一个kotlin委托的属性。

 //works great! @set:Inject var cat: Cat by Ref(ref) //fails @set:[Inject Named("dog")] var dog : Animal by Ref(ref) 

所以我试了

 //fails, can't use `@field` with a delegated property @field:[Inject Named("dog")] var dog : Animal by Ref(ref) //fails, can't use `lateinit` with a delegated property @field:[Inject Named("dog")] lateinit var dog : Animal by Ref(ref) 

Kotlin language will be the best programming language for Android.