I may have found a bug with kotlin native. I have...
# multiplatform
p
I may have found a bug with kotlin native. I have the following:
Copy code
type 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.
o
Please report an issue with reproducer to the issue tracker
p
updated this issue with a reproducer: https://github.com/reduxkotlin/typealias-bug-reproducer