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 ๐งต
Robert Jaros
03/05/2024, 3:27 PM
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()
}
Robert Jaros
03/05/2024, 3:27 PM
Is this a known issue perhaps?
a
Artem Kobzar
03/10/2024, 8:33 PM
I'm not sure it's suppose to be like this. Could you please create an issue ?