Add explanatory comment.

This commit is contained in:
Cyrus Najmabadi 2015-03-31 14:32:36 -07:00
parent 99581fe5ef
commit 785cb55977

View file

@ -3327,6 +3327,8 @@ module ts {
if (!links.resolvedType) {
let type: Type;
// We don't currently support heritage clauses with complex expressions in them.
// For these cases, we just set the type to be the unknownType.
if (node.kind !== SyntaxKind.HeritageClauseElement || isSupportedHeritageClauseElement(<HeritageClauseElement>node)) {
let typeNameOrExpression = node.kind === SyntaxKind.TypeReference
? (<TypeReferenceNode>node).typeName