little confused about how method references are su...
# announcements
g
little confused about how method references are supposed to work in 1.1.. can someone tell me what's up here?
Copy code
fun put(entities: List<String>) {
        // doesn't work
        entities.forEach { dao::put }
        // works
        entities.forEach { dao.put(it) }
        // also works
        val put = dao::put
        entities.forEach { put(it) }
}
feels like
entities.forEach { dao::put }
should work here?