https://kotlinlang.org logo
#android
Title
# android
j

Javier

04/08/2021, 12:31 PM
I have a this property in a CustomView which is a published module
Copy code
var onTextChanged: ((text: String) -> Unit)? = null
but when I do
onTextChanged = { ... }
, there is an inference issue where it detects the
String
as
Any
. How can I solve this problem?
If I test this in the local module, the problem is not appearing
it is only happening with lambdas
Assembling the apk with Gradle is failing too
2 Views