code in java:
public interface MvpPresenter<V extends MvpView> {
public void attachView(V view);
public void detachView(boolean retainInstance);
}
when I write in kotlin:
interface MvpPresenter<out MvpView> {
fun attachView(view: MvpView)
fun detachView(retainInstance: Boolean)
}
fun attachView(view: V) compile error!
So How can I deal with ? extend T in kotlin???