Skip to content

Commit 37f3ff8

Browse files
committed
Check for function flag on class symbol
1 parent fcfc424 commit 37f3ff8

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
@@ -6903,7 +6903,7 @@ namespace ts {
69036903
.expression as PropertyAccessExpression) // x.prototype
69046904
.expression; // x
69056905
const classSymbol = checkExpression(className).symbol;
6906-
if (classSymbol && classSymbol.members) {
6906+
if (classSymbol && classSymbol.members && (classSymbol.flags & SymbolFlags.Function)) {
69076907
return getInferredClassType(classSymbol);
69086908
}
69096909
}

0 commit comments

Comments
 (0)