So my problem is simple, In java if i have a base class like this:
BaseViewModel.Java
public abstract class BaseViewModel<N> extends ViewModel {
I can extend this class to other classes without defining the generic argument N, like this:
public class BaseFragment<V extends BaseViewModel> { //this is fine
but kotlin throws an error with this approach asking for the generic definition.
class BaseFragment<V: BaseViewModel>: Fragment() {// one type argument expected
how to avoid this?