Code review comments

This commit is contained in:
Mohamed Hegazy 2016-07-18 09:19:29 -07:00
parent a3b0810d8c
commit 7f045adc86

View File

@ -14614,7 +14614,7 @@ namespace ts {
if (node.typeParameters) {
// Only report errors on the last declaration for the type parameter container;
// this ensures that all uses have been accounted for.
const symbol = node.symbol && getMergedSymbol(node.symbol);
const symbol = getSymbolOfNode(node);
const lastDeclaration = symbol && symbol.declarations && lastOrUndefined(symbol.declarations);
if (lastDeclaration !== node) {
return;