Skip to content
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

Description

@markuz-gj

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions