mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-08 17:38:54 -06:00
Code review comments
This commit is contained in:
parent
a3b0810d8c
commit
7f045adc86
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user