Sergio Crespo Toubes
04/13/2021, 10:50 AManswers {
thirdArg<(String) -> Unit>().invoke("text")
}
i had to change it to
answers {
thirdArg<(String) -> Boolean>().invoke("text")
}
but i am getting the next solution Unit cannot be cast to java.lang.Boolean
any idea? thanksMattia Tommasone
04/13/2021, 10:52 AMSergio Crespo Toubes
04/13/2021, 10:55 AMfun doSomething(
data1: Int,
data2: String,
onSuccess: (String) -> Unit,
onError: (Throwable) -> Unit
): Boolean
Mattia Tommasone
04/13/2021, 10:58 AMthirdArg<(String) -> Unit>
?Sergio Crespo Toubes
04/13/2021, 10:59 AMType mismatch.
Required:
Boolean
Found:
Unit
Mattia Tommasone
04/13/2021, 11:02 AMSergio Crespo Toubes
04/13/2021, 11:03 AMephemient
04/13/2021, 4:16 PManswers {
thirdArg<(String) -> Unit>().invoke("text")
Unit
}
Sergio Crespo Toubes
04/13/2021, 4:20 PMBoolean
thanksephemient
04/13/2021, 4:29 PMSergio Crespo Toubes
04/13/2021, 4:30 PMMattia Tommasone
04/13/2021, 4:30 PM