We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bb2fe0 commit 96181c0Copy full SHA for 96181c0
src/compiler/checker.ts
@@ -18557,8 +18557,12 @@ namespace ts {
18557
const links = getSymbolLinks(symbol);
18558
if (!links.typeParametersChecked) {
18559
links.typeParametersChecked = true;
18560
- const type = <InterfaceType>getDeclaredTypeOfSymbol(symbol);
18561
const declarations = getClassOrInterfaceDeclarationsOfSymbol(symbol);
+ if (declarations.length <= 1) {
18562
+ return;
18563
+ }
18564
+
18565
+ const type = <InterfaceType>getDeclaredTypeOfSymbol(symbol);
18566
if (!areTypeParametersIdentical(declarations, type.localTypeParameters)) {
18567
// Report an error on every conflicting declaration.
18568
const name = symbolToString(symbol);
0 commit comments