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
This is behaving as intended. the derived class does not have a constructor, the compiler can not just delegate the constructor in the general case. Consider a case where the type of the argument in the base class is not accessible to the derived. the emit would be invalid. Noting that the output generation needs to work as single file transformation (i.e. in isolation of the rest of the project) . e.g.:
//File2.tsimport{Base}from"./File1";classDerivedextendsBase{}// Inner here is not visible
If you are using TS 2.2 (specifically the change to __extends in #12488) you should be able to get the parent meta data by walking up the prototype chain.
TypeScript Version: 2.1.4
tsc
is run with--experimentalDecorators
and--emitDecoratorMetadata
Code
Expected behavior:
Metadata for subclass with default constructor should include parameter types of super constructor.
Actual behavior:
tsc
emit:The text was updated successfully, but these errors were encountered: