xkor
12/15/2016, 8:53 AM@Provides provideFoo(): Foo = Foo()
@Provides provideBar(foo: Foo): Bar = Bar(foo)
all works fine, but when I try to use List or Set, or other collection classes:
@Provides provideFooList(): List<Foo> = listOf(Foo())
@Provides provideBar(fooList: List<Foo>): Bar = Bar(fooList)
I have compilation error: List<? extends Foo> cannot be provided without an @Provides- or @Produces-annotated method.
Anybody know how resolve this problem?