Fix isSymbolInScopeOfMappedTypeParameter to include mapped types

This commit is contained in:
Anders Hejlsberg 2017-01-30 15:40:31 -08:00
parent f32f95ae23
commit 16103a9ca2

View File

@ -6864,6 +6864,11 @@ namespace ts {
}
}
break;
case SyntaxKind.MappedType:
if (contains(mappedTypes, getDeclaredTypeOfTypeParameter(getSymbolOfNode((<MappedTypeNode>node).typeParameter)))) {
return true;
}
break;
case SyntaxKind.JSDocFunctionType:
const func = node as JSDocFunctionType;
for (const p of func.parameters) {