Got problems with RecyclerAdapter ViewHolder
abstract class ExpandableRecyclerAdapter(private
Kotlin does not allow generic types to be specified without providing generics unless you're referring to a non-instance member of the class. (static inner classes, ::class
, companion methods). Since ViewHolder
is an inner class its identity depends on the exact specification of its outer class when talking about the type itself.
This means you cannot refer to a generic ExpandableRecyclerAdapter.ViewHolder
, you must specify the bounds in which the outer class lies as well. Changing it to ExpandableRecyclerAdapter<T>.ViewHolder
should solve the issue.