File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ namespace ts {
110
110
getParameterType: getTypeAtPosition,
111
111
getReturnTypeOfSignature,
112
112
getNonNullableType,
113
- getBaseTypeVariableOfClass,
114
113
typeToTypeNode: nodeBuilder.typeToTypeNode,
115
114
indexInfoToIndexSignatureDeclaration: nodeBuilder.indexInfoToIndexSignatureDeclaration,
116
115
signatureToSignatureDeclaration: nodeBuilder.signatureToSignatureDeclaration,
Original file line number Diff line number Diff line change @@ -2530,7 +2530,6 @@ namespace ts {
2530
2530
*/
2531
2531
/* @internal */ getParameterType ( signature : Signature , parameterIndex : number ) : Type ;
2532
2532
getNonNullableType ( type : Type ) : Type ;
2533
- /* @internal */ getBaseTypeVariableOfClass ( symbol : Symbol ) : Type | undefined ;
2534
2533
2535
2534
/** Note that the resulting nodes cannot be checked. */
2536
2535
typeToTypeNode ( type : Type , enclosingDeclaration ?: Node , flags ?: NodeBuilderFlags ) : TypeNode ;
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ namespace ts.codefix {
49
49
const symbol = leftExpressionType . symbol ;
50
50
if ( symbol . flags & SymbolFlags . Class ) {
51
51
classDeclaration = symbol . declarations && < ClassLikeDeclaration > symbol . declarations [ 0 ] ;
52
- if ( getObjectFlags ( leftExpressionType ) & ObjectFlags . Anonymous && symbol . flags & SymbolFlags . Class && ! checker . getBaseTypeVariableOfClass ( symbol ) ) {
52
+ if ( leftExpressionType !== checker . getDeclaredTypeOfSymbol ( symbol ) ) {
53
+ // The expression is a class symbol but the type is not the instance-side.
53
54
makeStatic = true ;
54
55
}
55
56
}
You can’t perform that action at this time.
0 commit comments