Skip to content

Commit 96181c0

Browse files
committed
Shortcut for class/namespace merge
1 parent 5bb2fe0 commit 96181c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/compiler/checker.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18557,8 +18557,12 @@ namespace ts {
1855718557
const links = getSymbolLinks(symbol);
1855818558
if (!links.typeParametersChecked) {
1855918559
links.typeParametersChecked = true;
18560-
const type = <InterfaceType>getDeclaredTypeOfSymbol(symbol);
1856118560
const declarations = getClassOrInterfaceDeclarationsOfSymbol(symbol);
18561+
if (declarations.length <= 1) {
18562+
return;
18563+
}
18564+
18565+
const type = <InterfaceType>getDeclaredTypeOfSymbol(symbol);
1856218566
if (!areTypeParametersIdentical(declarations, type.localTypeParameters)) {
1856318567
// Report an error on every conflicting declaration.
1856418568
const name = symbolToString(symbol);

0 commit comments

Comments
 (0)