Ruckus
02/22/2018, 2:44 PMBaseNavigator
. Unless BaseNavigator
is a subclass of NavigationController
(it's not, you have it the other way around), that won't compile.yuriy.stetsyk
02/22/2018, 3:02 PMN : BaseNavigator
states that N should inherit BaseNavigator?Ruckus
02/22/2018, 4:42 PMnavigation
is specifically a NavigationController
, and you can't guarantee the factory
passed into f
is generic over NavigationController
, only BaseNavigator
.navigation
, you'd need something like:
fun <F, V, P> f(factory: NavigationFactory<F, V, P, NavigationController>)
where F : Fragment,
F : BaseView<V, P>,
V : BaseView<V, P>,
P : NavigatorPresenter<V, P, NavigationController>{
factory.with(navigation)
}