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
functiondec(){returnfunction(target,key){};}varUseCase=(function(){functionUseCase(){}returnUseCase;}());varChild1=(function(_super){__extends(Child1,_super);functionChild1(){_super.apply(this,arguments);}returnChild1;}(UseCase));varChild2=(function(_super){__extends(Child2,_super);functionChild2(){_super.apply(this,arguments);}returnChild2;}(UseCase));varD=(function(){functionD(){}__decorate([dec(),__metadata('design:type',Object)// <-- expected to be UseCase],D.prototype,"field",void0);returnD;}());
The text was updated successfully, but these errors were encountered:
dqweek
changed the title
Emit of union type metadata is of two classes inherited from the same parent are Object
Emit of union type metadata of two classes inherited from the same parent are Object and not common ancestor
Dec 7, 2016
Why they need to be treated the same, is it difficult to reflect the common ancestor of Union of types ?
Of course all types have common ancestor (object type) by default, but still it would be nice to emit something more descriptive, so we could use it in runtime
TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx)
Code
Expected behavior:
Actual behavior:
Related Issues
#12703
The text was updated successfully, but these errors were encountered: