Skip to content

Commit ff47fa1

Browse files
committed
Property check expressions in class extends clause
1 parent bbaf322 commit ff47fa1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12613,6 +12613,7 @@ namespace ts {
1261312613
if (baseTypes.length && produceDiagnostics) {
1261412614
let baseType = baseTypes[0];
1261512615
let staticBaseType = getBaseConstructorTypeOfClass(type);
12616+
checkSourceElement(baseTypeNode.expression);
1261612617
if (baseTypeNode.typeArguments) {
1261712618
forEach(baseTypeNode.typeArguments, checkSourceElement);
1261812619
for (let constructor of getConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments)) {
@@ -13682,6 +13683,8 @@ namespace ts {
1368213683
case SyntaxKind.VariableDeclaration:
1368313684
case SyntaxKind.VariableDeclarationList:
1368413685
case SyntaxKind.ClassDeclaration:
13686+
case SyntaxKind.HeritageClause:
13687+
case SyntaxKind.ExpressionWithTypeArguments:
1368513688
case SyntaxKind.EnumDeclaration:
1368613689
case SyntaxKind.EnumMember:
1368713690
case SyntaxKind.ExportAssignment:

0 commit comments

Comments
 (0)