Joan Colmenero
07/02/2019, 3:01 PMinterface BasePresenter<in T : BaseView> {
fun attachView(view: T)
}
And
interface BasePresenter<T> {
fun attachView(view: T)
am
07/04/2019, 4:24 AMin:
for generic it means that you need to pass it as a parameter for any function but you cannot use that to return any value of the type specified to function
where as when you just add T
you can use the type as a parameter as well as return type to any function