Fix new and improved linter errors

This commit is contained in:
Nathan Shively-Sanders
2015-11-09 10:48:22 -08:00
parent b44e33155f
commit 569cf96d06
+3 -3
View File
@@ -2876,7 +2876,7 @@ namespace ts {
}
const baseTypeNode = getBaseTypeNodeOfClass(type);
let baseType: Type;
let originalBaseType = baseConstructorType && baseConstructorType.symbol ? getDeclaredTypeOfSymbol(baseConstructorType.symbol) : undefined;
const originalBaseType = baseConstructorType && baseConstructorType.symbol ? getDeclaredTypeOfSymbol(baseConstructorType.symbol) : undefined;
if (baseConstructorType.symbol && baseConstructorType.symbol.flags & SymbolFlags.Class &&
!baseTypeHasUnappliedOuterTypeParameters(originalBaseType)) {
// When base constructor type is a class with no captured type arguments we know that the constructors all have the same type parameters as the
@@ -2916,8 +2916,8 @@ namespace ts {
}
function baseTypeHasUnappliedOuterTypeParameters(type: Type): boolean {
let originalBaseType = <InterfaceType>type;
let originalTypeReference = <TypeReference>type;
const originalBaseType = <InterfaceType>type;
const originalTypeReference = <TypeReference>type;
if (originalBaseType.outerTypeParameters) {
// an unapplied type type parameter is one
// whose argument symbol is still the same as the parameter symbol