I solved it! Was, as the compiler was saying, a ty...
# codereview
o
I solved it! Was, as the compiler was saying, a type inference problem. With the following code:
Copy code
val networkDataSourceAdapter: RxNetworkDataSourceAdapter<out BeerListResponse<out List<Beer>>> = createNetworkDataSourceAdapter()
        val cachedDataSourceAdapter: CachedDataSourceAdapter<List<Beer>,Beer> = getBeerLocalSource()
        return FountainRx.createNetworkWithCacheSupportListing(
            networkDataSourceAdapter = networkDataSourceAdapter,
            cachedDataSourceAdapter = cachedDataSourceAdapter,
            firstPage = FountainConstants.DEFAULT_FIRST_PAGE,
            ioServiceScheduler = <http://Schedulers.io|Schedulers.io>(),
            ioDatabaseScheduler = <http://Schedulers.io|Schedulers.io>(),
            pagedListConfig = FountainConstants.DEFAULT_PAGED_LIST_CONFIG)
    }
Using the out kotlin keyword to explicit the types, the error message is finally gone. More info in this Kotlin Documentation page: https://kotlinlang.org/docs/reference/generics.html Thanks anyway 🙂