I have a strange issue (a bug?) with method refere...
# webassembly
r
I have a strange issue (a bug?) with method references on 2.0.0-Beta4. The same code works fine with 1.9.22 for JS and Wasm and with 2.0.0-Beta4 for JS. I've managed to simplify my use case to this small fragment. See 🧵
Copy code
interface TestInterface {
    fun foo()
}

object TestObject {

    private val test = run {
        println("The method reference is null!")
        println(TestInterface::foo)
    }

    fun bar() {
    }
}

fun main() {
    TestObject.bar()
}
Is this a known issue perhaps?
a
I'm not sure it's suppose to be like this. Could you please create an issue ?