You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be at least an information that @JSName annotation has to be reapplied after overriding a method from a @ScalaJSDefined class. Best would be if the annotation is carried over, because I think it's a common pattern in @ScalaJSDefined classes to rename the scala method name from a facade to provide a custom method with the actual method name and call the renamed one.
@ScalaJSDefined
abstract class A extends js.Object {
@JSName("_test")
def test(): Int
@JSName("test")
def _test(): String = test().toString
}
val a = new A {
override def test() = 1
}
This leads to a Conflicting properties and methods for ... Error because the @JSName annotation is not carried over.
The text was updated successfully, but these errors were encountered:
There should be at least an information that
@JSName
annotation has to be reapplied after overriding a method from a@ScalaJSDefined
class. Best would be if the annotation is carried over, because I think it's a common pattern in@ScalaJSDefined
classes to rename the scala method name from a facade to provide a custom method with the actual method name and call the renamed one.This leads to a
Conflicting properties and methods for ...
Error because the@JSName
annotation is not carried over.The text was updated successfully, but these errors were encountered: