Fix instantiated generic mixin declaration emit (#19144)

* Fix #18545, dont use declared type of class expression

* Accept API Baselines

* Add thus far unused flag from node builder

* Accept baseline update
This commit is contained in:
Wesley Wigham
2017-10-16 14:17:55 -07:00
committed by GitHub
parent 63074bcba0
commit aea7e9a7a8
5 changed files with 339 additions and 1 deletions

View File

@@ -3398,7 +3398,7 @@ namespace ts {
else if (flags & TypeFormatFlags.WriteClassExpressionAsTypeLiteral &&
type.symbol.valueDeclaration &&
type.symbol.valueDeclaration.kind === SyntaxKind.ClassExpression) {
writeAnonymousType(getDeclaredTypeOfClassOrInterface(type.symbol), flags);
writeAnonymousType(type, flags);
}
else {
// Write the type reference in the format f<A>.g<B>.C<X, Y> where A and B are type arguments