Thread
#multiplatform
    p

    Patrick Jackson

    3 years ago
    I may have found a bug with kotlin native. I have the following:
    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.
    olonho

    olonho

    3 years ago
    Please report an issue with reproducer to the issue tracker
    p

    Patrick Jackson

    3 years ago
    updated this issue with a reproducer: https://github.com/reduxkotlin/typealias-bug-reproducer