Join Slack
Communities
Powered by
then this does not solve the casting problem
# announcements
e
Efe
02/14/2018, 2:09 PM
then this does not solve the casting problem
m
menegatti
02/14/2018, 2:10 PM
https://kotlinlang.org/docs/reference/generics.html#declaration-site-variance
menegatti
02/14/2018, 2:11 PM
a pretty good reading material
menegatti
02/14/2018, 2:11 PM
check the
Comparable
example for a pretty similar use case
e
Efe
02/14/2018, 2:19 PM
Yep I saw that. It is not working for my scenario because the object I try to cast is List. But the problem would be solved if I would try to get the TaskListener.
Efe
02/14/2018, 2:20 PM
Thanks again for your help. 🙏
2
Views
Open in Slack
Previous
Next