Quick question How can I inherit from a generic In...
# announcements
r
Quick question How can I inherit from a generic Interface.
Copy code
abstract class BaseActivity<V : BaseView, P : BasePresenter<V>> :
        MvpActivity<V, P>(), BaseView
This works fine because
BaseView
is an interface. But if I replace it with
V
, I get
Only classes and interface can serve as supertypes