I’m running into an issue where Kotlin isn’t doing...
# getting-started
d
I’m running into an issue where Kotlin isn’t doing a lambda to SAM conversion if I’m doing assignment using a generated member (from a setter), but it’s doing the SAM conversion if I call the method directly. Any idea what could be causing that? Specifically
listView?.onItemClickListener = ({ parent: AdapterView<*>, view: View, position: Int, id: Long -> })
makes kotlinc complain but
listView?.setOnItemClickListener({ parent: AdapterView<*>, view: View, position: Int, id: Long -> })
does not