Mike R
07/20/2019, 10:10 PMinterface IterableResponse {
val data: List<T>
val paginationInfo: More?
}
and I am getting an error "Unresolved reference T".
I would like for any class that implements the interface to have a data
property that is a list of anything - but I don't want to use List<Any>
because I need the implementing classes to have typed Lists.
Am I using generics incorrectly? What am I doing wrong?Kevin Luke
07/20/2019, 10:38 PMinterface IterableResponse<T> {
val data: List<T>
val paginationInfo: More?
}
Mike R
07/20/2019, 11:26 PMHullaballoonatic
07/21/2019, 12:12 AMMike R
07/21/2019, 4:30 PM