<Type mismatch found while using Generic in Kotlin...
# stackoverflow
u
Type mismatch found while using Generic in Kotlin I am converting this code to kotlin where abstract class BaseModel(){ } BaseViewHolder abstract class BaseViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView){ abstract fun bindData(data: T) } BaseAdapter abstract class BaseAdapter(var items: List) : RecyclerView.Adapter() { override fun onCreateViewHolder(p0: ViewGroup, p1: Int): U { }...