Why when using this Java is fine while in Kotlin i...
# android
a
Why when using this Java is fine while in Kotlin it complains :
mPresenter.onViewAttached((V) this);
Kotlin :
mPresenter?.onViewAttached(this as V)
it says : Unchecked cast BaseActivity<P,V> to V