Skip to content

Commit 785cb55

Browse files
Add explanatory comment.
1 parent 99581fe commit 785cb55

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/compiler/checker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3327,6 +3327,8 @@ module ts {
33273327
if (!links.resolvedType) {
33283328
let type: Type;
33293329

3330+
// We don't currently support heritage clauses with complex expressions in them.
3331+
// For these cases, we just set the type to be the unknownType.
33303332
if (node.kind !== SyntaxKind.HeritageClauseElement || isSupportedHeritageClauseElement(<HeritageClauseElement>node)) {
33313333
let typeNameOrExpression = node.kind === SyntaxKind.TypeReference
33323334
? (<TypeReferenceNode>node).typeName

0 commit comments

Comments
 (0)