~You want `<in T>` on the interface.~
# announcements
k
You want
<in T>
on the interface.
a
Did you answer me?
k
Yes simple smile. I had the answer still typed up from when you deleted the code.
a
If I write so interface Sample<in T>{ fun foo(v:T) } The error is still present (
k
My bad. You probably do want
<in T>
on the interface, but that's not the problem here.
The actual problem is that SAM conversion only works for Java interfaces.
a
Wow! Thanks! What a pity...
k
Yeah I agree it's weird, the suggestion is to use higher order functions instead.
a
I will
g