Fix #5651: Get the correct meaning for expressions in extends clauses

This commit is contained in:
Mohamed Hegazy
2016-03-03 21:47:11 -08:00
parent baa040115e
commit c98c763243
5 changed files with 129 additions and 1 deletions

View File

@@ -1642,7 +1642,7 @@ namespace ts {
function isEntityNameVisible(entityName: EntityName | Expression, enclosingDeclaration: Node): SymbolVisibilityResult {
// get symbol of the first identifier of the entityName
let meaning: SymbolFlags;
if (entityName.parent.kind === SyntaxKind.TypeQuery) {
if (entityName.parent.kind === SyntaxKind.TypeQuery || isExpressionWithTypeArgumentsInClassExtendsClause(entityName.parent)) {
// Typeof value
meaning = SymbolFlags.Value | SymbolFlags.ExportValue;
}