7912db3829
In a derived service class with no decorator (and therefore no factory) of its own, the factory function of the base class will be used instead. Previously this logic had a bug where the factory function would be called with no arguments, which would incorrectly create an instance of the base class. This commit adds logic to call the base class' factory and pass the type of the derived class, which will correctly construct an instance of the derived class using the base class' factory. A test is also added to verify correctness of this behavior. PR Close #30855 |
||
---|---|---|
.. | ||
forward_ref_spec.ts | ||
injector_spec.ts | ||
r3_injector_spec.ts | ||
reflective_injector_spec.ts | ||
reflective_key_spec.ts | ||
static_injector_spec.ts |