Skip to content

Commit f37fc1d

Browse files
committed
Infer types to statics in a class expression
1 parent 43febe5 commit f37fc1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5491,7 +5491,7 @@ namespace ts {
54915491
}
54925492
}
54935493
else if (source.flags & TypeFlags.ObjectType && (target.flags & (TypeFlags.Reference | TypeFlags.Tuple) ||
5494-
(target.flags & TypeFlags.Anonymous) && target.symbol && target.symbol.flags & (SymbolFlags.Method | SymbolFlags.TypeLiteral))) {
5494+
(target.flags & TypeFlags.Anonymous) && target.symbol && target.symbol.flags & (SymbolFlags.Method | SymbolFlags.TypeLiteral | SymbolFlags.Class))) {
54955495
// If source is an object type, and target is a type reference, a tuple type, the type of a method, or a type literal, infer from members
54965496
if (isInProcess(source, target)) {
54975497
return;

0 commit comments

Comments
 (0)