This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
annotate helper and SuperConstructor doesn't work #86
Open
Description
While this works:
@Inject(Foo)
class Parent {
constructor(foo) {
this.parentFoo = foo;
}
}
@Inject(SuperConstructor, Foo)
class Child extends Parent {
constructor(superConstructor, foo) {
superConstructor();
this.childFoo = foo;
}
}
this doesn't,
class Parent {
constructor(foo) {
this.parentFoo = foo;
}
}
annotate(Parent, new Inject(Foo))
class Child extends Parent {
constructor(superConstructor, foo) {
superConstructor();
this.childFoo = foo;
}
}
annotate(Child, new Inject(SuperConstructor, Foo))
with the following error message: injector SuperConstructor should support "super" to call multiple parent constructors with annotate helper FAILED
Metadata
Metadata
Assignees
Labels
No labels