You’ve run into a common edge case. Kotlin will d...
# announcements
d
You’ve run into a common edge case. Kotlin will do SAM conversion for Java interfaces, but not for Kotlin interfaces. If you want to use a lambda to make that call in Kotlin you’ll need to change it from an interface to a function type (ie. from
val something: FooInterface = { ... }
to
val something: (input1, input2) -> output = { ... }
)
👍 1