Join Slack
Powered by
you'd have to declare your interfaces like this : ...
# getting-started
f
fred.deschenes
11/03/2017, 2:45 PM
you'd have to declare your interfaces like this :
Copy code
interface Wtf<out A, out B, out C : Ftw<A, B>> interface Ftw<out A, out B>
👍 1
m
miha-x64
11/03/2017, 2:48 PM
Thanks, you've saved my evening! Thought it's impossible.
f
fred.deschenes
11/03/2017, 2:54 PM
No problem, be careful though as this might open up the portal to generics hell 😉
🤔 1
fred.deschenes
11/03/2017, 2:55 PM
You should probably read the documentation on star projections :
https://kotlinlang.org/docs/reference/generics.html
m
miha-x64
11/03/2017, 4:19 PM
Yea, thanks. I've read it, my generics are just too complicated, getting analysis paralysis sometimes 🙂
Open in Slack
Previous
Next