Is @JsName annotation required for every method?

Viewed 748

I was trying to make NodeJs work with Kotlin for a HelloWorld example here.

As per the Kotlin JS documentation, @JsName annotation is required for overloaded methods. But in my experience, it is required even for a single method. Without this annotation the compiler adds a suffix to the method name as shown in the screenshot.enter image description here

Is this a bug? Or am I missing something?

I'm using Kotlin 1.1.0 module provided by NPM (please check the GitHub link above for the complete codebase if required).

1 Answers
Related