miha-x64
04/11/2017, 8:21 AMinline 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.