``` inline fun createRunnables(crossinline code: (...
# announcements
m
Copy code
inline fun createRunnables(crossinline code: ()->Unit) = listOf(object : Runnable {
    override fun run() = code()
})
Error:(5, 12) Kotlin: ‘public’ function exposes its ‘local’ return type argument <no name provided>
Looks very strange to me. Using SAM lambda in place of anonymous class is OK.