I have an issue at scalamock created long time ago and I’m wondering is it currently possible to create an annotated class with Symbol.newClass
? How to do it if so?
I know I can annotate a TypeTree, but is it enough?
E.g. I have a class:
@js.native
@JSGlobal
class FakeJSNativeClass extends js.Object:
def fillText(text: String, x: Double, y: Double, maxWidth: Double = js.native): Unit = js.native
And i should generate:
@js.native
@JSGlobal
class Foo extends FakeJSNativeClass {
def fillText(text: String, x: Double, y: Double, maxWidth: Double = js.native): Unit = ()
}