<@U19UGKG8P> Your `MyDelegate` not only returns `s...
# android
l
@menegatti Your
MyDelegate
not only returns
specificViewHolder
but also takes
specificViewHolder
(in
onBindViewHolder
function), So, the
VH
type has to be invariant, so type system limitations will not let you do what you want - I guess 🙂 As a workaround you could always use base
ViewHolder
as a second type parameter of your delegates, and just cast it to/from
specificViewHolder
inside
onCreateViewHolder
and
onBindViewHolder
functions.