I think I have a bug on kotlin js: ``` fun main(ar...
# javascript
g
I think I have a bug on kotlin js:
Copy code
fun main(args: Array<String>) {
	sayHello().talk()   
}

fun  sayHello() = HelloGenerator().apply {
    //talk = this::helloFunction // <- OK on jvz and js
    talk = ::helloFunction  // <- OK on jvm, KO on js
}

class HelloGenerator {
    var talk: () -> Unit = ::helloFunction
    fun helloFunction() { println("hello world") }
}
a
This is a bug indeed
Implicit extension receiver is incorrectly translated to
this
Could you report a bug to youtrack?
g
👍
@anton.bannykh you mean it shouldn’t work on the jvm?
a
@gaetan It should work. It is a bug in the Kotlin/JS code generator. 😃 Thanks!
g
👍
a
Should work in the next EAP
👏 1