Patrick Jackson
07/26/2019, 1:45 PMtype alias Bar = (String) -> Any
fun test(foo: Any) {
if (foo is Function<*>) {
(foo as Bar)("test")
}
}
On JVM the conditional will be true when passing in a function. On Native it is false.olonho
07/27/2019, 11:30 AMPatrick Jackson
08/05/2019, 4:30 PM