Shortcut for class/namespace merge

This commit is contained in:
Ron Buckton
2017-02-03 16:36:48 -08:00
parent 5bb2fe03ea
commit 96181c023b

View File

@@ -18557,8 +18557,12 @@ namespace ts {
const links = getSymbolLinks(symbol);
if (!links.typeParametersChecked) {
links.typeParametersChecked = true;
const type = <InterfaceType>getDeclaredTypeOfSymbol(symbol);
const declarations = getClassOrInterfaceDeclarationsOfSymbol(symbol);
if (declarations.length <= 1) {
return;
}
const type = <InterfaceType>getDeclaredTypeOfSymbol(symbol);
if (!areTypeParametersIdentical(declarations, type.localTypeParameters)) {
// Report an error on every conflicting declaration.
const name = symbolToString(symbol);