It looks like you are trying to do SAM conversions...
# announcements
d
It looks like you are trying to do SAM conversions, Kotlin will automatically do SAM conversions just like Java 8, but it will only if the interface to convert to is from Java, and not if the interface is in Kotlin. ie. if you define
Constructor
in Java to accept a Kotlin lambda object and return T I think things should work how you want. I think the class signature for a Kotlin lambda that you want is probably something like:
Function1<T,Foo>
but you might have to look it up.